Fix #303 make port spinners insensitive if random ports is enabled
This commit is contained in:
parent
f45badc34d
commit
0b590bfcda
|
@ -311,6 +311,11 @@ class Preferences(component.Component):
|
||||||
widget.set_value(value)
|
widget.set_value(value)
|
||||||
elif modifier == "text":
|
elif modifier == "text":
|
||||||
widget.set_text(value)
|
widget.set_text(value)
|
||||||
|
|
||||||
|
for key in core_widgets.keys():
|
||||||
|
widget = self.glade.get_widget(key)
|
||||||
|
# Update the toggle status if necessary
|
||||||
|
self.on_toggle(widget)
|
||||||
else:
|
else:
|
||||||
core_widget_list = [
|
core_widget_list = [
|
||||||
"download_path_button",
|
"download_path_button",
|
||||||
|
@ -589,7 +594,10 @@ class Preferences(component.Component):
|
||||||
|
|
||||||
def on_toggle(self, widget):
|
def on_toggle(self, widget):
|
||||||
"""Handles widget sensitivity based on radio/check button values."""
|
"""Handles widget sensitivity based on radio/check button values."""
|
||||||
value = widget.get_active()
|
try:
|
||||||
|
value = widget.get_active()
|
||||||
|
except:
|
||||||
|
return
|
||||||
|
|
||||||
# Disable the focus dialog checkbox if the show dialog isn't active.
|
# Disable the focus dialog checkbox if the show dialog isn't active.
|
||||||
if widget == self.glade.get_widget("chk_show_dialog"):
|
if widget == self.glade.get_widget("chk_show_dialog"):
|
||||||
|
|
Loading…
Reference in New Issue