Remove print statement. Use original button order instead of the sorted order used in the layout button.

This commit is contained in:
Charles Haley 2017-06-18 11:38:32 +02:00
parent a763d7336c
commit f8ca82dc76

View File

@ -588,9 +588,7 @@ class LayoutMixin(object): # {{{
''')
self.status_bar.addPermanentWidget(button)
if gprefs['show_layout_buttons']:
from calibre.utils.icu import primary_sort_key
for b in sorted(self.layout_buttons, key=lambda b: primary_sort_key(b.label)):
print(b.label)
for b in self.layout_buttons:
b.setVisible(True)
self.status_bar.addPermanentWidget(b)
else: