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:
|
||||
raise NoOptionError(optname, sectname)
|
||||
else:
|
||||
self.get.cache_clear()
|
||||
if sectname in ('colors', 'fonts'):
|
||||
self.style_changed.emit(sectname, optname)
|
||||
self.changed.emit(sectname, optname)
|
||||
self.get.cache_clear()
|
||||
|
||||
@cmdutils.register(instance='config')
|
||||
def save(self):
|
||||
|
Loading…
Reference in New Issue
Block a user