mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 17:36:20 +01:00
Restore visual order for layout buttons in the popup
This commit is contained in:
parent
6a7b721dd3
commit
257e8dba26
1 changed files with 1 additions and 3 deletions
|
|
@ -8,7 +8,6 @@
|
|||
QFontMetrics, QHBoxLayout, QIcon, QMenu, QPainter, QPushButton, QSize,
|
||||
QSizePolicy, Qt, QWidget, QStyleOption, QStyle)
|
||||
|
||||
from calibre.utils.icu import primary_sort_key
|
||||
|
||||
ICON_SZ = 64
|
||||
|
||||
|
|
@ -99,8 +98,7 @@ def __init__(self, parent=None):
|
|||
b.setVisible(False), b.setCheckable(True), b.setChecked(b.text() in 'tags grid')
|
||||
b.label = b.text().capitalize()
|
||||
else:
|
||||
buttons = sorted(
|
||||
parent.layout_buttons, key=lambda b: primary_sort_key(b.label))
|
||||
buttons = parent.layout_buttons
|
||||
for b in buttons:
|
||||
self.items.append(LayoutItem(b, self))
|
||||
l.addWidget(self.items[-1])
|
||||
|
|
|
|||
Loading…
Reference in a new issue