Fix typing issues

CURA-6005
This commit is contained in:
Lipu Fei 2018-12-12 10:35:36 +01:00
parent 2275e5c71f
commit 8c07a6e89b
4 changed files with 11 additions and 10 deletions

View file

@ -70,7 +70,8 @@ class DrivePluginExtension(QObject, Extension):
if not self._drive_window:
self._drive_window = self.createDriveWindow()
self.refreshBackups()
self._drive_window.show()
if self._drive_window:
self._drive_window.show()
def createDriveWindow(self) -> Optional["QObject"]:
"""