mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 22:35:56 +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()
|
@pyqtSlot()
|
||||||
def closeApplication(self):
|
def closeApplication(self):
|
||||||
Logger.log("i", "Close application")
|
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
|
## A reusable dialogbox
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user