- fixed a typo

- fixed layout on first launch of the app
- RELEASE 8.99
This commit is contained in:
Marius Stanciu
2019-12-15 16:40:37 +02:00
committed by Marius
parent 8361ee7897
commit ba3a6138dc
3 changed files with 16 additions and 3 deletions

View File

@@ -698,7 +698,18 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
self.setTitle(str(_("GUI Settings")))
self.decimals = decimals
theme_settings = QtCore.QSettings("Open Source", "FlatCAM")
if theme_settings.contains("theme"):
theme = theme_settings.value('theme', type=str)
else:
theme = 'white'
if theme == 'white':
self.resource_loc = 'share'
else:
self.resource_loc = 'share'
# Create a form layout for the Application general settings
self.form_box = QtWidgets.QFormLayout()
@@ -1031,7 +1042,7 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
"\n")
)
msgbox.setWindowTitle(_("Clear GUI Settings"))
msgbox.setWindowIcon(QtGui.QIcon(self.app.resource_location + '/trash32.png'))
msgbox.setWindowIcon(QtGui.QIcon(self.resource_loc + '/trash32.png'))
bt_yes = msgbox.addButton(_('Yes'), QtWidgets.QMessageBox.YesRole)
bt_no = msgbox.addButton(_('No'), QtWidgets.QMessageBox.NoRole)