This commit is contained in:
Kovid Goyal 2017-06-15 11:35:18 +05:30
parent fd4168c9ec
commit ad5e243821
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -378,7 +378,7 @@ class SearchBarButton(LayoutButton): # {{{
gprefs['search bar visible'] = bool(self.isChecked()) gprefs['search bar visible'] = bool(self.isChecked())
def restore_state(self): def restore_state(self):
self.setChecked(gprefs.get('search bar visible', True)) self.setChecked(bool(gprefs.get('search bar visible', True)))
# }}} # }}}