Use get_opt in NewConfigManager.set
This commit is contained in:
parent
5081e4f201
commit
44e4816cbb
@ -257,10 +257,7 @@ class NewConfigManager(QObject):
|
||||
|
||||
def set(self, name, value):
|
||||
# FIXME:conf stub
|
||||
try:
|
||||
opt = self.options[name]
|
||||
except KeyError:
|
||||
raise configexc.NoOptionError(name)
|
||||
opt = self.get_opt(name)
|
||||
self._values[name] = opt.typ.from_str(value)
|
||||
self.changed.emit(name)
|
||||
log.config.debug("Config option changed: {} = {}".format(name, value))
|
||||
|
Loading…
Reference in New Issue
Block a user