mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
CURA-4895 Don't run autosave settings if application has not been created or if not started
This commit is contained in:
parent
b59eadce1c
commit
e1bca1ca5d
1 changed files with 9 additions and 0 deletions
|
@ -67,6 +67,15 @@ class AutoSave(Extension):
|
||||||
self._global_stack.containersChanged.connect(self._triggerTimer)
|
self._global_stack.containersChanged.connect(self._triggerTimer)
|
||||||
|
|
||||||
def _onTimeout(self):
|
def _onTimeout(self):
|
||||||
|
# only initialise if the application is created and has started
|
||||||
|
from cura.CuraApplication import CuraApplication
|
||||||
|
if not CuraApplication.Created:
|
||||||
|
self._change_timer.start()
|
||||||
|
return
|
||||||
|
if not CuraApplication.getInstance().started:
|
||||||
|
self._change_timer.start()
|
||||||
|
return
|
||||||
|
|
||||||
self._saving = True # To prevent the save process from triggering another autosave.
|
self._saving = True # To prevent the save process from triggering another autosave.
|
||||||
Logger.log("d", "Autosaving preferences, instances and profiles")
|
Logger.log("d", "Autosaving preferences, instances and profiles")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue