Fix data saving before making a backup

CURA-6471
This commit is contained in:
Lipu Fei 2019-04-24 08:21:09 +02:00
parent ce9f3c9bcc
commit 4876d5af00
3 changed files with 11 additions and 7 deletions

View file

@ -51,8 +51,8 @@ class BackupsManager:
## Here we try to disable the auto-save plug-in as it might interfere with
# restoring a back-up.
def _disableAutoSave(self) -> None:
self._application.setSaveDataEnabled(False)
self._application.getAutoSave().setEnabled(False)
## Re-enable auto-save after we're done.
def _enableAutoSave(self) -> None:
self._application.setSaveDataEnabled(True)
self._application.getAutoSave().setEnabled(True)