This commit is contained in:
ChrisTerBeke 2018-05-23 19:18:11 +02:00
parent 260dee54fb
commit 809cab4ea5
No known key found for this signature in database
GPG key ID: A49F1AB9D7E0C263
4 changed files with 6 additions and 27 deletions

View file

@ -503,15 +503,12 @@ class CuraApplication(QtApplication):
def setSaveDataEnabled(self, enabled: bool) -> None:
self._save_data_enabled = enabled
## Cura has multiple locations where instance containers need to be saved, so we need to handle this differently.
#
# Note that the AutoSave plugin also calls this method.
# Cura has multiple locations where instance containers need to be saved, so we need to handle this differently.
def saveSettings(self):
if not self.started or not self._save_data_enabled:
# Do not do saving during application start or when data should not be safed on quit.
return
ContainerRegistry.getInstance().saveDirtyContainers()
Preferences.getInstance().writeToFile(Resources.getStoragePath(Resources.Preferences,
self._application_name + ".cfg"))