[GTK] Fix tray preferences greyed out

When not connected the tray preferences should still be available.

There is no need to have the `is_connected` applied to widget
sensitivity here as that is set elsewhere in the code.
This commit is contained in:
Calum Lind 2018-11-06 11:16:05 +00:00
parent 39783c7703
commit 2bb9a8e71c

View File

@ -1052,7 +1052,7 @@ class Preferences(component.Component):
else:
depwidget = self.builder.get_object(dep)
sensitive = [not value, value][dependency[dep]]
depwidget.set_sensitive(sensitive and self.is_connected)
depwidget.set_sensitive(sensitive)
if dep in dependents:
update_dependent_widgets(dep, depwidget.get_active() and sensitive)