mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Fixes for restoring preferences on Linux
This commit is contained in:
parent
30d66fb8de
commit
2ed4b1b014
2 changed files with 12 additions and 10 deletions
|
@ -36,8 +36,6 @@ class BackupsManager:
|
|||
Logger.log("w", "Tried to restore a backup without specifying a Cura version number.")
|
||||
return
|
||||
|
||||
# TODO: first make a new backup to prevent data loss when restoring fails.
|
||||
|
||||
self._disableAutoSave()
|
||||
|
||||
backup = Backup(zip_file = zip_file, meta_data = meta_data)
|
||||
|
@ -45,7 +43,7 @@ class BackupsManager:
|
|||
if restored:
|
||||
# At this point, Cura will need to restart for the changes to take effect.
|
||||
# We don't want to store the data at this point as that would override the just-restored backup.
|
||||
CuraApplication.getInstance().windowClosed(safe_data=False)
|
||||
CuraApplication.getInstance().windowClosed(save_data=False)
|
||||
|
||||
def _disableAutoSave(self):
|
||||
"""Here we try to disable the auto-save plugin as it might interfere with restoring a backup."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue