- fixed a small bug that made app crash when the splash screen is disabled: it was trying to close it without being open

This commit is contained in:
Marius Stanciu
2019-09-29 00:36:01 +03:00
committed by Marius
parent f47d9cf3d2
commit 6554f1f6b6
2 changed files with 5 additions and 2 deletions

View File

@@ -2575,8 +2575,9 @@ class App(QtCore.QObject):
# if the app is not started as headless, show it
if self.cmd_line_headless != 1:
# finish the splash
self.splash.finish(self.ui)
if show_splash:
# finish the splash
self.splash.finish(self.ui)
settings = QSettings("Open Source", "FlatCAM")
if settings.contains("maximized_gui"):