mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Treat empty text settings as unset, to allow users to clear a string to get the default back.
This commit is contained in:
parent
388b477c71
commit
961f946a76
@ -129,6 +129,9 @@ class _Preference(object):
|
|||||||
if res.value in self.options:
|
if res.value in self.options:
|
||||||
return res.value
|
return res.value
|
||||||
return self.default
|
return self.default
|
||||||
|
if self._type == 'text':
|
||||||
|
if res.value == '':
|
||||||
|
return self.default
|
||||||
|
|
||||||
return res.value
|
return res.value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user