mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Pass new config on to add-on
This commit is contained in:
parent
ee3357a943
commit
8ce7c00d54
1 changed files with 2 additions and 1 deletions
|
@ -493,8 +493,9 @@ class ConfigEditor(QDialog):
|
||||||
|
|
||||||
if new_conf != self.conf:
|
if new_conf != self.conf:
|
||||||
self.mgr.writeConfig(self.addon, new_conf)
|
self.mgr.writeConfig(self.addon, new_conf)
|
||||||
|
# does the add-on define an action to be fired?
|
||||||
act = self.mgr.configUpdatedAction(self.addon)
|
act = self.mgr.configUpdatedAction(self.addon)
|
||||||
if act:
|
if act:
|
||||||
act()
|
act(new_conf)
|
||||||
|
|
||||||
super().accept()
|
super().accept()
|
||||||
|
|
Loading…
Reference in a new issue