Treat empty text settings as unset, to allow users to clear a string to get the default back.
parent
388b477c71
commit
961f946a76
|
@ -129,6 +129,9 @@ class _Preference(object):
|
|||
if res.value in self.options:
|
||||
return res.value
|
||||
return self.default
|
||||
if self._type == 'text':
|
||||
if res.value == '':
|
||||
return self.default
|
||||
|
||||
return res.value
|
||||
|
||||
|
|
Loading…
Reference in New Issue