diff --git a/terminatorlib/searchbar.py b/terminatorlib/searchbar.py index dcbf3351..e6095ab1 100644 --- a/terminatorlib/searchbar.py +++ b/terminatorlib/searchbar.py @@ -84,12 +84,8 @@ class Searchbar(Gtk.HBox): # Match Case checkbox self.match_case = Gtk.CheckButton.new_with_label('Match Case') self.match_case.show() - if self.config.base.get_item('case_sensitive') is True: - case_sensitive = True - else: - case_sensitive = False self.match_case.set_sensitive(True) - self.match_case.set_active(case_sensitive) + self.match_case.set_active(self.config.base.get_item('case_sensitive')) self.match_case.connect('toggled', self.match_case_toggled) # Wrap checkbox