- changed the status bar label to have an icon instead of text
- added a label in status bar that will toggle the Preferences tab - made some changes such that that the label in status bar for toggling the Preferences Tab will be updated in various cases of closing the tab
This commit is contained in:
@@ -948,10 +948,14 @@ class PreferencesUIManager:
|
||||
self.preferences_changed_flag = False
|
||||
self.ignore_tab_close_event = True
|
||||
|
||||
# restore stylesheet to default for the statusBar icon
|
||||
self.ui.pref_status_label.setStyleSheet("")
|
||||
|
||||
try:
|
||||
self.ui.general_defaults_form.general_app_group.units_radio.activated_custom.disconnect()
|
||||
except (TypeError, AttributeError):
|
||||
pass
|
||||
|
||||
self.defaults_write_form(source_dict=self.defaults.current_defaults)
|
||||
self.ui.general_defaults_form.general_app_group.units_radio.activated_custom.connect(
|
||||
lambda: self.ui.app.on_toggle_units(no_pref=False))
|
||||
@@ -1076,6 +1080,9 @@ class PreferencesUIManager:
|
||||
if self.ignore_tab_close_event:
|
||||
return
|
||||
|
||||
# restore stylesheet to default for the statusBar icon
|
||||
self.ui.pref_status_label.setStyleSheet("")
|
||||
|
||||
# disconnect
|
||||
for idx in range(self.ui.pref_tab_area.count()):
|
||||
for tb in self.ui.pref_tab_area.widget(idx).findChildren(QtCore.QObject):
|
||||
|
||||
Reference in New Issue
Block a user