Addon Manager: Add branch switching GUI

For users with git and GitPython installed, a new button is added to the
details view allowing them to change the branch they are on. Some other
minor UI changes are made to accomodate this new behavior.
This commit is contained in:
Chris Hennes
2022-02-03 19:30:16 -06:00
parent ce2a8d00ec
commit f19f4e65b2
8 changed files with 541 additions and 11 deletions

View File

@@ -757,6 +757,8 @@ class CommandAddonManager:
if repo.status() == AddonManagerRepo.UpdateStatus.UPDATE_AVAILABLE:
self.packages_with_updates.append(repo)
self.enable_updates(len(self.packages_with_updates))
elif repo.status() == AddonManagerRepo.UpdateStatus.PENDING_RESTART:
self.restart_required = True
def enable_updates(self, number_of_updates: int) -> None:
"""enables the update button"""