configtypes: Add none_ok param to UserStyleSheet.

This commit is contained in:
Florian Bruhin 2015-07-23 16:56:58 +02:00
parent cf5296ebb5
commit b0c3f5381b
2 changed files with 1 additions and 4 deletions

View File

@ -271,7 +271,7 @@ def data(readonly=False):
"page."),
('user-stylesheet',
SettingValue(typ.UserStyleSheet(),
SettingValue(typ.UserStyleSheet(none_ok=True),
'::-webkit-scrollbar { width: 0px; height: 0px; }'),
"User stylesheet to use (absolute filename, filename relative to "
"the config directory or CSS string). Will expand environment "

View File

@ -1194,9 +1194,6 @@ class UserStyleSheet(File):
typestr = 'user-stylesheet'
def __init__(self):
super().__init__(none_ok=True)
def transform(self, value):
if not value:
return None