Fix #113206: add-on unregister() not called on exit
Own regression in [0] caused add-ons not to run the unregister function
on exit.
[0]: e1b72e569d
This commit is contained in:
parent
dcb2c0bdf6
commit
9a75c29bf8
|
@ -520,7 +520,7 @@ def disable_all():
|
|||
# Use direct `__dict__` access to bypass `__getattr__`, see: #111649.
|
||||
addon_modules = [
|
||||
item for item in sys.modules.items()
|
||||
if type(mod_dict := getattr(item[0], "__dict__", None)) is dict
|
||||
if type(mod_dict := getattr(item[1], "__dict__", None)) is dict
|
||||
if mod_dict.get("__addon_enabled__")
|
||||
]
|
||||
# Check the enabled state again since it's possible the disable call
|
||||
|
|
Loading…
Reference in New Issue