mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Do not safe data after restoring backup
This commit is contained in:
parent
79cebca9f0
commit
a7342f4619
3 changed files with 8 additions and 4 deletions
|
@ -497,10 +497,10 @@ class CuraApplication(QtApplication):
|
|||
## 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.
|
||||
def saveSettings(self):
|
||||
if not self.started: # Do not do saving during application start
|
||||
def saveSettings(self, safe_data: bool = True):
|
||||
if not self.started or not safe_data:
|
||||
# Do not do saving during application start or when data should not be safed on quit.
|
||||
return
|
||||
|
||||
ContainerRegistry.getInstance().saveDirtyContainers()
|
||||
|
||||
def saveStack(self, stack):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue