Addon Manager: Bugfixes and cleanup of refactor

This commit is contained in:
Chris Hennes
2021-10-28 09:14:50 -05:00
parent 67f051007e
commit bd6b3eb404
5 changed files with 140 additions and 84 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#***************************************************************************
#* *
#* Copyright (c) 2021 Chris Hennes <chennes@pioneerlibrarysystem.org> *
@@ -45,6 +44,9 @@ class AddonManagerRepo:
elif self.value == 3:
return "Package"
def __int__(self) -> int :
return self.value
class UpdateStatus(Enum):
NOT_INSTALLED = 0
UNCHECKED = 1
@@ -161,4 +163,4 @@ class AddonManagerRepo:
store = os.path.join(FreeCAD.getUserAppDataDir(), "AddonManager", "PackageMetadata")
self.cached_icon_filename = os.path.join(store, self.name, "cached_icon"+file_extension)
return self.cached_icon_filename
return self.cached_icon_filename