diff options
author | Remco Burema <r.burema@ultimaker.com> | 2020-03-26 20:19:47 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2020-03-26 20:19:47 +0300 |
commit | 3c50b78e685c1c226db654852c03a98ee8f7311b (patch) | |
tree | d45f3e65d7b3e11f646cf82438fd63f77e220666 /cura/Backups | |
parent | 08411243898fdcde4826423bc58f38be7e4db4b4 (diff) |
Fix: Definitions could be partly saved between backup restore and quit.
part of CURA-7325
Diffstat (limited to 'cura/Backups')
-rw-r--r-- | cura/Backups/BackupsManager.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cura/Backups/BackupsManager.py b/cura/Backups/BackupsManager.py index ba6fcab8d7..99e74bfa4d 100644 --- a/cura/Backups/BackupsManager.py +++ b/cura/Backups/BackupsManager.py @@ -48,9 +48,10 @@ class BackupsManager: # We don't want to store the data at this point as that would override the just-restored backup. self._application.windowClosed(save_data = False) - ## Here we try to disable the auto-save plug-in as it might interfere with + ## Here we try to disable the auto-save plug-in and other saving as it might interfere with # restoring a back-up. def _disableAutoSave(self) -> None: + self._application.enableSave(False) auto_save = self._application.getAutoSave() # The auto save is only not created if the application has not yet started. if auto_save: @@ -58,8 +59,9 @@ class BackupsManager: else: Logger.log("e", "Unable to disable the autosave as application init has not been completed") - ## Re-enable auto-save after we're done. + ## Re-enable auto-save and other saving after we're done. def _enableAutoSave(self) -> None: + self._application.enableSave(True) auto_save = self._application.getAutoSave() # The auto save is only not created if the application has not yet started. if auto_save: |