Simplify parsing config value
This commit is contained in:
parent
66f4020e37
commit
19e1cf755c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user