- fixed a bug that created a crash in special conditions; it's related to the QSettings in FlatCAMGui.py

This commit is contained in:
Marius Stanciu
2019-12-15 00:42:07 +02:00
committed by Marius
parent 72a5ba868e
commit 63baeda071
3 changed files with 6 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
=================================================
15.12.2019
- fixed a bug that created a crash in special conditions; it's related to the QSettings in FlatCAMGui.py
14.12.2019
- finished the strings update in the Google-translated Spanish

View File

@@ -2099,6 +2099,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.lock_action.setText(_("Lock Toolbars"))
self.lock_action.setCheckable(True)
settings = QSettings("Open Source", "FlatCAM")
if settings.contains("toolbar_lock"):
lock_val = settings.value('toolbar_lock')
if lock_val == 'true':

View File

@@ -886,6 +886,7 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
_("Enable display of the splash screen at application startup.")
)
self.splash_cb = FCCheckBox()
settings = QSettings("Open Source", "FlatCAM")
if settings.value("splash_screen"):
self.splash_cb.set_value(True)