mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
GTKUI: Ensure None value from problem config is empty string for set_text
This commit is contained in:
parent
9f75d4597e
commit
58c048f1b0
@ -373,6 +373,8 @@ class Preferences(component.Component):
|
||||
elif modifier == "value":
|
||||
widget.set_value(float(value))
|
||||
elif modifier == "text":
|
||||
if value is None:
|
||||
value = ""
|
||||
widget.set_text(value)
|
||||
|
||||
for key in core_widgets.keys():
|
||||
|
Loading…
x
Reference in New Issue
Block a user