From 6287e48ad5eb711f5a9f9e6d9705ef57d4b19dd2 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 30 Apr 2023 23:05:22 +0100 Subject: [PATCH] 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. --- src/calibre/gui2/actions/sort.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/actions/sort.py b/src/calibre/gui2/actions/sort.py index 71b285d24a..ff9a68cf18 100644 --- a/src/calibre/gui2/actions/sort.py +++ b/src/calibre/gui2/actions/sort.py @@ -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)