mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 03:55:55 +08:00
Close all windows, if there is no main window
This commit is contained in:
parent
f1d5bc38dc
commit
1cd107965c
@ -401,7 +401,11 @@ class CuraApplication(QtApplication):
|
||||
@pyqtSlot()
|
||||
def closeApplication(self):
|
||||
Logger.log("i", "Close application")
|
||||
self._main_window.close()
|
||||
main_window = self.getMainWindow()
|
||||
if main_window is not None:
|
||||
main_window.close()
|
||||
else:
|
||||
self.closeAllWindows()
|
||||
|
||||
## A reusable dialogbox
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user