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:
Campbell Barton 2023-10-04 16:09:30 +11:00
parent dcb2c0bdf6
commit 9a75c29bf8
1 changed files with 1 additions and 1 deletions

View File

@ -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