Fix lint
This commit is contained in:
parent
efc613811f
commit
c33fc62d2f
@ -69,6 +69,7 @@ class SettingOptionCompletionModel(BaseCompletionModel):
|
||||
|
||||
@pyqtSlot(str, str)
|
||||
def on_config_changed(self, section, option):
|
||||
"""Update misc column when config changed."""
|
||||
if section != self._section:
|
||||
return
|
||||
try:
|
||||
|
@ -147,7 +147,8 @@ class CompletionView(QTreeView):
|
||||
for sectname, sect in configdata.DATA.items():
|
||||
optmodel = CFM(SettingOptionCompletionModel(sectname, self))
|
||||
self._models['option'][sectname] = optmodel
|
||||
config.instance.changed.connect(optmodel.srcmodel.on_config_changed)
|
||||
config.instance.changed.connect(
|
||||
optmodel.srcmodel.on_config_changed)
|
||||
if hasattr(sect, 'valtype'):
|
||||
# Same type for all values (ValueList)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user