Addon Manager: Implement content addition dialogs

This commit is contained in:
Chris Hennes
2022-09-01 20:47:37 -05:00
parent aabf887e1e
commit 7a17106776
10 changed files with 1462 additions and 380 deletions

View File

@@ -101,7 +101,7 @@ installed.
# \brief The Addon Manager allows users to install workbenches and macros made by other users
# @{
INSTANCE = None
class CommandAddonManager:
"""The main Addon Manager class and FreeCAD command"""
@@ -156,6 +156,10 @@ class CommandAddonManager:
self.update_all_worker = None
self.developer_mode = None
# Give other parts of the AM access to the current instance
global INSTANCE
INSTANCE = self
def GetResources(self) -> Dict[str, str]:
return {
"Pixmap": "AddonManager",
@@ -918,6 +922,7 @@ class CommandAddonManager:
self.check_for_python_package_updates_worker.finished.connect(
self.do_next_startup_phase
)
self.update_allowed_packages_list() # Not really the best place for it...
self.check_for_python_package_updates_worker.start()
def show_python_updates_dialog(self) -> None:
@@ -1118,7 +1123,7 @@ class CommandAddonManager:
False."""
bad_packages = []
self.update_allowed_packages_list()
#self.update_allowed_packages_list()
for dep in python_required:
if dep not in self.allowed_packages:
bad_packages.append(dep)