mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Fix tooltip for checkboxes
This commit is contained in:
parent
83920c879b
commit
a729246988
|
@ -110,6 +110,7 @@ class ConfigBox(VBox):
|
|||
value, default, has_entry=True)
|
||||
elif option_type == 'bool':
|
||||
self.generate_checkbox(option, value)
|
||||
self.tooltip_default = 'Enabled' if default else 'Disabled'
|
||||
elif option_type == 'range':
|
||||
self.generate_range(option_key,
|
||||
option["min"],
|
||||
|
@ -149,9 +150,6 @@ class ConfigBox(VBox):
|
|||
checkbox = Gtk.CheckButton(label=option["label"])
|
||||
if value:
|
||||
checkbox.set_active(value)
|
||||
self.tooltip_default = 'Enabled'
|
||||
else:
|
||||
self.tooltip_default = 'Disabled'
|
||||
checkbox.connect("toggled", self.checkbox_toggle, option['option'])
|
||||
self.wrapper.pack_start(checkbox, True, True, 5)
|
||||
self.option_widget = checkbox
|
||||
|
|
Loading…
Reference in a new issue