From f8ca82dc769f0019afd9b89f082202eaee9a17df Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 18 Jun 2017 11:38:32 +0200 Subject: [PATCH] Remove print statement. Use original button order instead of the sorted order used in the layout button. --- src/calibre/gui2/init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/calibre/gui2/init.py b/src/calibre/gui2/init.py index c1fd2fb704..b429c623af 100644 --- a/src/calibre/gui2/init.py +++ b/src/calibre/gui2/init.py @@ -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: