Prevent exception being logged if no backups window was created

CURA-8313
This commit is contained in:
Konstantinos Karmas 2021-06-25 09:52:48 +02:00
parent 4435a10f9d
commit d35f018729

View file

@ -81,7 +81,8 @@ class DrivePluginExtension(QObject, Extension):
self._drive_window.show() self._drive_window.show()
def _onApplicationShuttingDown(self): def _onApplicationShuttingDown(self):
self._drive_window.hide() if self._drive_window:
self._drive_window.hide()
def _autoBackup(self) -> None: def _autoBackup(self) -> None:
preferences = CuraApplication.getInstance().getPreferences() preferences = CuraApplication.getInstance().getPreferences()