mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the sort sub menu a little clearer
This commit is contained in:
parent
3eba09c13c
commit
d9ab10dd16
@ -616,8 +616,10 @@ class GridView(QListView):
|
|||||||
extra = ''
|
extra = ''
|
||||||
if last[0] == col:
|
if last[0] == col:
|
||||||
ascending = not last[1]
|
ascending = not last[1]
|
||||||
extra = ' [%s]' % _('reverse')
|
extra = ' [%s]' % _('reverse current sort')
|
||||||
sm.addAction('%s%s' % (m.get('name', col), extra), partial(self.do_sort, col, ascending))
|
ac = sm.addAction('%s%s' % (m.get('name', col), extra), partial(self.do_sort, col, ascending))
|
||||||
|
if last[0] == col:
|
||||||
|
ac.setIcon(QIcon(I('ok.png')))
|
||||||
|
|
||||||
for ac in self.context_menu.actions():
|
for ac in self.context_menu.actions():
|
||||||
menu.addAction(ac)
|
menu.addAction(ac)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user