mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +00:00
GTKUI: Ensure None value from problem config is empty string for set_text
This commit is contained in:
parent
9f75d4597e
commit
58c048f1b0
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue