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

pull/3/head
Dave Page 2016-11-23 12:43:02 +00:00
parent 388b477c71
commit 961f946a76
1 changed files with 3 additions and 0 deletions

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