Merge branch 'show-default-value' of https://github.com/peterlvilim/qutebrowser into peterlvilim-show-default-value
This commit is contained in:
commit
d540a1ee22
@ -116,8 +116,10 @@ class SettingValueCompletionModel(base.BaseCompletionModel):
|
||||
value = '""'
|
||||
self.cur_item, _descitem, _miscitem = self.new_item(cur_cat, value,
|
||||
"Current value")
|
||||
self.new_item(cur_cat, configdata.DATA[section][option].default(),
|
||||
"Default value")
|
||||
default_value = configdata.DATA[section][option].default()
|
||||
if not default_value:
|
||||
default_value = '""'
|
||||
self.new_item(cur_cat, default_value, "Default value")
|
||||
if hasattr(configdata.DATA[section], 'valtype'):
|
||||
# Same type for all values (ValueList)
|
||||
vals = configdata.DATA[section].valtype.complete()
|
||||
|
Loading…
Reference in New Issue
Block a user