mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-10 19:46:22 +00:00
[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:
parent
39783c7703
commit
2bb9a8e71c
@ -1052,7 +1052,7 @@ class Preferences(component.Component):
|
|||||||
else:
|
else:
|
||||||
depwidget = self.builder.get_object(dep)
|
depwidget = self.builder.get_object(dep)
|
||||||
sensitive = [not value, value][dependency[dep]]
|
sensitive = [not value, value][dependency[dep]]
|
||||||
depwidget.set_sensitive(sensitive and self.is_connected)
|
depwidget.set_sensitive(sensitive)
|
||||||
if dep in dependents:
|
if dep in dependents:
|
||||||
update_dependent_widgets(dep, depwidget.get_active() and sensitive)
|
update_dependent_widgets(dep, depwidget.get_active() and sensitive)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user