Fix cache invalidation for on_setting_changed.
This commit is contained in:
parent
7f40a5789d
commit
af10d1c857
@ -411,10 +411,10 @@ class ConfigManager(QObject):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
raise NoOptionError(optname, sectname)
|
raise NoOptionError(optname, sectname)
|
||||||
else:
|
else:
|
||||||
|
self.get.cache_clear()
|
||||||
if sectname in ('colors', 'fonts'):
|
if sectname in ('colors', 'fonts'):
|
||||||
self.style_changed.emit(sectname, optname)
|
self.style_changed.emit(sectname, optname)
|
||||||
self.changed.emit(sectname, optname)
|
self.changed.emit(sectname, optname)
|
||||||
self.get.cache_clear()
|
|
||||||
|
|
||||||
@cmdutils.register(instance='config')
|
@cmdutils.register(instance='config')
|
||||||
def save(self):
|
def save(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user