mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Fix backup causing a crash in specific situations
This commit is contained in:
parent
60488e9ff6
commit
186eef0b68
2 changed files with 14 additions and 4 deletions
|
|
@ -260,7 +260,7 @@ class CuraApplication(QtApplication):
|
|||
self._plugins_loaded = False
|
||||
|
||||
# Backups
|
||||
self._auto_save = None
|
||||
self._auto_save = None # type: Optional[AutoSave]
|
||||
|
||||
from cura.Settings.CuraContainerRegistry import CuraContainerRegistry
|
||||
self._container_registry_class = CuraContainerRegistry
|
||||
|
|
@ -988,7 +988,7 @@ class CuraApplication(QtApplication):
|
|||
|
||||
return super().event(event)
|
||||
|
||||
def getAutoSave(self):
|
||||
def getAutoSave(self) -> Optional[AutoSave]:
|
||||
return self._auto_save
|
||||
|
||||
## Get print information (duration / material used)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue