Treat empty text settings as unset, to allow users to clear a string to get the default back.

This commit is contained in:
Dave Page 2016-11-23 12:43:02 +00:00
parent 388b477c71
commit 961f946a76

View File

@ -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