Skip to content
Snippets Groups Projects
Commit 0e0de71e authored by Jdrezen's avatar Jdrezen
Browse files

Ajout de test si le nom de fichier est vide pour la sauvegarde de l'état

parent c057d7fe
Branches file_explorer
No related tags found
No related merge requests found
...@@ -235,11 +235,11 @@ class Controleur: ...@@ -235,11 +235,11 @@ class Controleur:
self.__scheduler.start() self.__scheduler.start()
""" """
Save the current state Save the current state in the given file
""" """
def updateSave(self, filename : str) -> None: def updateSave(self, filename : str) -> None:
if not (filename is None): if filename != '':
self.__scheduler.save() self.__scheduler.save(filename)
def updateCycle(self) -> None: def updateCycle(self) -> None:
try: try:
...@@ -247,14 +247,14 @@ class Controleur: ...@@ -247,14 +247,14 @@ class Controleur:
except: except:
return return
def updateWindow(self): def updateWindow(self) -> None:
pass pass
def initialisation(self) -> None: def initialisation(self) -> None:
pass pass
""" """
Launch the amas in a thread and display the window Launch the scheduler in a thread and display the window
""" """
def start(self) -> None: def start(self) -> None:
self.initialisation() self.initialisation()
...@@ -262,7 +262,10 @@ class Controleur: ...@@ -262,7 +262,10 @@ class Controleur:
self.__th.start() self.__th.start()
self.__fenetre.display() self.__fenetre.display()
def updateClosing(self): """
Close the scheduler
"""
def updateClosing(self) -> None:
self.__scheduler.exit_program() self.__scheduler.exit_program()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment