mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sort menu: Show the current sort at the top of the menu
This commit is contained in:
parent
78af40cf17
commit
f4a1cdc98c
@ -126,6 +126,11 @@ class SortByAction(InterfaceAction):
|
||||
if key == sort_col:
|
||||
sac.setIcon(self.sorted_icon)
|
||||
sac.sort_requested.connect(self.sort_requested)
|
||||
if key == sort_col:
|
||||
before = menu.actions()[0] if menu.actions() else None
|
||||
menu.insertAction(before, sac)
|
||||
menu.insertSeparator(before)
|
||||
else:
|
||||
menu.addAction(sac)
|
||||
|
||||
def choose_multisort(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user