Addon manager: Subscribe to core the enabled status of addon workbenches.

This commit is contained in:
Paddle
2023-03-30 11:44:14 +02:00
parent 835b96b724
commit a203012666
3 changed files with 130 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ class AddonInstaller(QtCore.QObject):
success = self._install_by_git()
elif method_to_use == InstallationMethod.COPY:
success = self._install_by_copy()
if (
hasattr(self.addon_to_install, "contains_workbench")
and self.addon_to_install.contains_workbench()
):
self.addon_to_install.enable_workbench()
except utils.ProcessInterrupted:
pass
if success: