mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Remove print statement. Use original button order instead of the sorted order used in the layout button.
This commit is contained in:
parent
a763d7336c
commit
f8ca82dc76
@ -588,9 +588,7 @@ class LayoutMixin(object): # {{{
|
|||||||
''')
|
''')
|
||||||
self.status_bar.addPermanentWidget(button)
|
self.status_bar.addPermanentWidget(button)
|
||||||
if gprefs['show_layout_buttons']:
|
if gprefs['show_layout_buttons']:
|
||||||
from calibre.utils.icu import primary_sort_key
|
for b in self.layout_buttons:
|
||||||
for b in sorted(self.layout_buttons, key=lambda b: primary_sort_key(b.label)):
|
|
||||||
print(b.label)
|
|
||||||
b.setVisible(True)
|
b.setVisible(True)
|
||||||
self.status_bar.addPermanentWidget(b)
|
self.status_bar.addPermanentWidget(b)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user