From 19e1cf755cff50d8efa295337663103c887d0121 Mon Sep 17 00:00:00 2001 From: Joe Peled Date: Sat, 17 Oct 2020 22:04:00 -0400 Subject: [PATCH] Simplify parsing config value --- terminatorlib/searchbar.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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