mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Minor fix to the sort by action: the menu wasn't being recomputed after selecting columns to show/not show, causing menu-based actions to show the previous values.
This commit is contained in:
parent
40f1948189
commit
6287e48ad5
@ -183,6 +183,7 @@ class SortByAction(InterfaceAction):
|
||||
if not i.isSelected():
|
||||
hidden.append(i.data(Qt.ItemDataRole.UserRole))
|
||||
db.new_api.set_pref(SORT_HIDDEN_PREF, tuple(hidden))
|
||||
self.update_menu()
|
||||
|
||||
def named_sort_selected(self, sort_spec):
|
||||
self.gui.library_view.multisort(sort_spec)
|
||||
|
Loading…
x
Reference in New Issue
Block a user