- made sure that the status bar label for preferences is updated also when the Preferences Tab is opened from the Edit -> Preferences
This commit is contained in:
17
App_Main.py
17
App_Main.py
@@ -5148,14 +5148,6 @@ class App(QtCore.QObject):
|
||||
self.ui.pref_status_label.setStyleSheet("")
|
||||
else:
|
||||
self.on_preferences()
|
||||
self.ui.pref_status_label.setStyleSheet("""
|
||||
QLabel
|
||||
{
|
||||
color: black;
|
||||
background-color: lightseagreen;
|
||||
}
|
||||
"""
|
||||
)
|
||||
|
||||
def on_preferences(self):
|
||||
"""
|
||||
@@ -5175,6 +5167,15 @@ class App(QtCore.QObject):
|
||||
self.ui.plot_tab_area.setCurrentWidget(self.ui.preferences_tab)
|
||||
# self.ui.show()
|
||||
|
||||
self.ui.pref_status_label.setStyleSheet("""
|
||||
QLabel
|
||||
{
|
||||
color: black;
|
||||
background-color: lightseagreen;
|
||||
}
|
||||
"""
|
||||
)
|
||||
|
||||
# detect changes in the preferences
|
||||
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