Преглед изворни кода

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

Marius Stanciu пре 6 година
родитељ
комит
6554f1f6b6
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 3 2
      FlatCAMApp.py
  2. 2 0
      README.md

+ 3 - 2
FlatCAMApp.py

@@ -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"):

+ 2 - 0
README.md

@@ -5,6 +5,7 @@ FlatCAM: 2D Computer-Aided PCB Manufacturing
 
 FlatCAM is a program for preparing CNC jobs for making PCBs on a CNC router.
 Among other things, it can take a Gerber file generated by your favorite PCB
+
 CAD program, and create G-Code for Isolation routing.
 
 =================================================
@@ -18,6 +19,7 @@ CAD program, and create G-Code for Isolation routing.
 - made sure that if the big mouse cursor is selected, the utility geometry in Excellon Editor has a thicker line width (2 pixels now) so it is visible over the geometry of the mouse cursor
 - fixed issue #319 where generating a CNCJob from a geometry made with NCC Tool made the app crash
 - replaced in FlatCAM Tools and in FLatCAMObj.py  and in Editors all references to hardcoded decimals in string formats for tools with a variable declared in the __init__()
+- fixed a small bug that made app crash when the splash screen is disabled: it was trying to close it without being open
 
 27.09.2019