From a3d8a0e6357c87a4fd8eec3a662a9a9db47964d0 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Wed, 23 Feb 2022 17:00:02 -0600 Subject: [PATCH] Addon Manager: Show correct buttons when no git If git and/or GitPython are not installed, the Addon Manager cannot check to see if there are any available updates. In that case, show the "Uninstall" and "Update" buttons. If no update is available, clicking the update button will simply download a new copy of the addon. --- src/Mod/AddonManager/package_details.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mod/AddonManager/package_details.py b/src/Mod/AddonManager/package_details.py index 35eb74e9fa..1220b1b61c 100644 --- a/src/Mod/AddonManager/package_details.py +++ b/src/Mod/AddonManager/package_details.py @@ -331,6 +331,11 @@ class PackageDetails(QWidget): self.ui.buttonUninstall.show() self.ui.buttonUpdate.hide() self.ui.buttonCheckForUpdate.hide() + elif status == AddonManagerRepo.UpdateStatus.CANNOT_CHECK: + self.ui.buttonInstall.hide() + self.ui.buttonUninstall.show() + self.ui.buttonUpdate.show() + self.ui.buttonCheckForUpdate.hide() required_version = self.requires_newer_freecad() if repo.obsolete: