mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix list view in look & feel tab not being updated if the initially shown sub tab is changed
This commit is contained in:
parent
ea873e7c1c
commit
3d82d3f70d
@ -91,6 +91,12 @@ class ConfigWidgetInterface:
|
||||
'''
|
||||
pass
|
||||
|
||||
def initial_tab_changed(self):
|
||||
'''
|
||||
Called if the initially displayed tab is changed before the widget is shown, but after it is initialized.
|
||||
'''
|
||||
pass
|
||||
|
||||
|
||||
class Setting:
|
||||
|
||||
|
@ -774,6 +774,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
self.tabWidget.currentWidget().setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
self.opt_ui_style.currentIndexChanged.connect(self.update_color_palette_state)
|
||||
|
||||
def initial_tab_changed(self):
|
||||
self.sections_view.setCurrentRow(self.tabWidget.currentIndex())
|
||||
|
||||
def fill_tb_search_order_box(self):
|
||||
# The tb_search_order is a directed graph of nodes with an arc to the next
|
||||
# node in the sequence. Node 0 (zero) is the start node with the last node
|
||||
|
@ -282,6 +282,10 @@ class Preferences(QDialog):
|
||||
idx = c.indexOf(w)
|
||||
if idx > -1:
|
||||
c.setCurrentIndex(idx)
|
||||
try:
|
||||
self.showing_widget.initial_tab_changed()
|
||||
except Exception:
|
||||
pass
|
||||
break
|
||||
else:
|
||||
self.hide_plugin()
|
||||
|
Loading…
x
Reference in New Issue
Block a user