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 = ''
|
||||
if last[0] == col:
|
||||
ascending = not last[1]
|
||||
extra = ' [%s]' % _('reverse')
|
||||
sm.addAction('%s%s' % (m.get('name', col), extra), partial(self.do_sort, col, ascending))
|
||||
extra = ' [%s]' % _('reverse current sort')
|
||||
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():
|
||||
menu.addAction(ac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user