mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Properly save setting visibility when auto saving
Contributes to CURA-511
This commit is contained in:
parent
765185364f
commit
40ea87fa05
1 changed files with 5 additions and 3 deletions
|
@ -13,7 +13,6 @@ class AutoSave(Extension):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
#Preferences.getInstance().preferenceChanged.connect(self._onPreferenceChanged)
|
||||
Preferences.getInstance().preferenceChanged.connect(self._triggerTimer)
|
||||
|
||||
machine_manager = Application.getInstance().getMachineManager()
|
||||
|
@ -52,8 +51,11 @@ class AutoSave(Extension):
|
|||
self._saving = True # To prevent the save process from triggering another autosave.
|
||||
Logger.log("d", "Autosaving preferences, instances and profiles")
|
||||
|
||||
machine_manager = Application.getInstance().getMachineManager()
|
||||
|
||||
machine_manager.saveVisibility()
|
||||
machine_manager.saveMachineInstances()
|
||||
machine_manager.saveProfiles()
|
||||
Preferences.getInstance().writeToFile(Resources.getStoragePath(Resources.Preferences, Application.getInstance().getApplicationName() + ".cfg"))
|
||||
Application.getInstance().getMachineManager().saveMachineInstances()
|
||||
Application.getInstance().getMachineManager().saveProfiles()
|
||||
|
||||
self._saving = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue