- fixed bug: on first ever usage of FlatCAM beta the last loaded language (alphabetically) is used instead of English (in current state is Russian)
- made sure the the GUI settings are cleared on each new install - added a new signal that is triggered by change in visibility for the Shell Dock and will change the status of the shell label in the status bar. In this way the label will really be changed each time the shell is toggled
This commit is contained in:
13
app_Main.py
13
app_Main.py
@@ -449,6 +449,17 @@ class App(QtCore.QObject):
|
||||
# ###########################################################################################################
|
||||
self.pool = Pool()
|
||||
|
||||
# ###########################################################################################################
|
||||
# ###################################### Clear GUI Settings - once at first start ###########################
|
||||
# ###########################################################################################################
|
||||
if self.defaults["first_run"] is True:
|
||||
# on first run clear the previous QSettings, therefore clearing the GUI settings
|
||||
qsettings = QSettings("Open Source", "FlatCAM")
|
||||
for key in qsettings.allKeys():
|
||||
qsettings.remove(key)
|
||||
# This will write the setting to the platform specific storage.
|
||||
del qsettings
|
||||
|
||||
# ###########################################################################################################
|
||||
# ###################################### Setting the Splash Screen ##########################################
|
||||
# ###########################################################################################################
|
||||
@@ -579,7 +590,7 @@ class App(QtCore.QObject):
|
||||
# ################################ It's done only once after install #####################################
|
||||
# ###########################################################################################################
|
||||
if self.defaults["first_run"] is True:
|
||||
# ONLY AT FIRST STARTUP INIT THE GUI LAYOUT TO 'COMPACT'
|
||||
# ONLY AT FIRST STARTUP INIT THE GUI LAYOUT TO 'minimal'
|
||||
initial_lay = 'minimal'
|
||||
self.ui.general_defaults_form.general_gui_group.on_layout(lay=initial_lay)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user