Addon Manager: Additional diagnostics for Macro updates

This commit is contained in:
Chris Hennes
2022-06-06 11:46:56 -05:00
parent 3db5aba499
commit 79ac3eeb4d
2 changed files with 5 additions and 0 deletions

View File

@@ -1473,6 +1473,8 @@ class CommandAddonManager:
def update_progress_bar(self, current_value: int, max_value: int) -> None:
"""Update the progress bar, showing it if it's hidden"""
max_value = max_value if max_value > 0 else 1
if current_value < 0:
current_value = 0
elif current_value > max_value: