Simplify parsing config value

This commit is contained in:
Joe Peled 2020-10-17 22:04:00 -04:00
parent 66f4020e37
commit 19e1cf755c
1 changed files with 1 additions and 5 deletions

View File

@ -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