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:
Charles Haley 2023-04-30 23:05:22 +01:00
parent 40f1948189
commit 6287e48ad5

View File

@ -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)