- fixed an issue due of recent changes that made the application think that is run always for the first time; fixed not applying the selected language translation
- some more code is refactored in the Preferences - the axis will now be drawn on the canvas as they were left in the previous run (just like the HUD and the Workspace) - for processors with less than 4 cores now the default number of workers is 1 (changed from 2) - some graphical settings go now directly to the defaults dictionary and will not pass through the `options` app dictionary
This commit is contained in:
@@ -1358,7 +1358,7 @@ class App(QtCore.QObject):
|
||||
# ##################################### FIRST RUN SECTION ###################################################
|
||||
# ################################ It's done only once after install #####################################
|
||||
# ###########################################################################################################
|
||||
if self.options["first_run"] is True:
|
||||
if self.defaults["first_run"] is True:
|
||||
# ONLY AT FIRST STARTUP INIT THE GUI LAYOUT TO 'minimal'
|
||||
self.log.debug("-> First Run: Setting up the first Layout")
|
||||
initial_lay = 'minimal'
|
||||
@@ -1369,7 +1369,7 @@ class App(QtCore.QObject):
|
||||
self.ui.general_pref_form.general_gui_group.layout_combo.setCurrentIndex(idx)
|
||||
|
||||
# after the first run, this object should be False
|
||||
self.options["first_run"] = False
|
||||
self.defaults["first_run"] = False
|
||||
self.log.debug("-> First Run: Updating the Defaults file with Factory Defaults")
|
||||
self.preferencesUiManager.save_defaults(silent=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user