Apply settings regardless of setup() function
This commit is contained in:
parent
ebca3f86d5
commit
da812600f4
1 changed files with 1 additions and 1 deletions
|
@ -32,9 +32,9 @@ def load_extensions():
|
||||||
try:
|
try:
|
||||||
exec(f"import extensions.{name}.script")
|
exec(f"import extensions.{name}.script")
|
||||||
extension = getattr(extensions, name).script
|
extension = getattr(extensions, name).script
|
||||||
|
apply_settings(extension, name)
|
||||||
if extension not in setup_called and hasattr(extension, "setup"):
|
if extension not in setup_called and hasattr(extension, "setup"):
|
||||||
setup_called.add(extension)
|
setup_called.add(extension)
|
||||||
apply_settings(extension, name)
|
|
||||||
extension.setup()
|
extension.setup()
|
||||||
|
|
||||||
state[name] = [True, i]
|
state[name] = [True, i]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue