mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Make set_config_help_action work with submodules (#2561)
This commit is contained in:
parent
01f9c600af
commit
df3fa5a0be
1 changed files with 2 additions and 1 deletions
|
@ -630,7 +630,8 @@ class AddonManager:
|
||||||
|
|
||||||
def set_config_help_action(self, module: str, action: Callable[[], str]) -> None:
|
def set_config_help_action(self, module: str, action: Callable[[], str]) -> None:
|
||||||
"Set a callback used to produce config help."
|
"Set a callback used to produce config help."
|
||||||
self._config_help_actions[module] = action
|
addon = self.addonFromModule(module)
|
||||||
|
self._config_help_actions[addon] = action
|
||||||
|
|
||||||
def addonConfigHelp(self, module: str) -> str:
|
def addonConfigHelp(self, module: str) -> str:
|
||||||
if action := self._config_help_actions.get(module, None):
|
if action := self._config_help_actions.get(module, None):
|
||||||
|
|
Loading…
Reference in a new issue