Get raw config values for completion model
This commit is contained in:
parent
170098683f
commit
d5891b2e86
@ -76,7 +76,7 @@ class SettingOptionCompletionModel(BaseCompletionModel):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
# changed before init
|
# changed before init
|
||||||
return
|
return
|
||||||
val = config.get(section, option)
|
val = config.get(section, option, raw=True)
|
||||||
self.setData(item.index(), val, Qt.DisplayRole)
|
self.setData(item.index(), val, Qt.DisplayRole)
|
||||||
|
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ class SettingValueCompletionModel(BaseCompletionModel):
|
|||||||
@pyqtSlot(str, str)
|
@pyqtSlot(str, str)
|
||||||
def on_config_changed(self, section, option):
|
def on_config_changed(self, section, option):
|
||||||
"""Update current value when config changed."""
|
"""Update current value when config changed."""
|
||||||
value = config.get(section, option)
|
value = config.get(section, option, raw=True)
|
||||||
if not value:
|
if not value:
|
||||||
value = '""'
|
value = '""'
|
||||||
self.setData(self.cur_item.index(), value, Qt.DisplayRole)
|
self.setData(self.cur_item.index(), value, Qt.DisplayRole)
|
||||||
|
Loading…
Reference in New Issue
Block a user