mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
isInstalled() should check old plugins as a fallback
This commit is contained in:
parent
15657f4cfc
commit
da047ea674
1 changed files with 5 additions and 1 deletions
|
@ -527,7 +527,11 @@ class Toolbox(QObject, Extension):
|
||||||
|
|
||||||
@pyqtSlot(str, result = bool)
|
@pyqtSlot(str, result = bool)
|
||||||
def isInstalled(self, package_id: str) -> bool:
|
def isInstalled(self, package_id: str) -> bool:
|
||||||
return self._package_manager.isPackageInstalled(package_id)
|
result = self._package_manager.isPackageInstalled(package_id)
|
||||||
|
# Also check the old plugins list if it's not found in the package manager.
|
||||||
|
if not result:
|
||||||
|
result = self.isOldPlugin(package_id)
|
||||||
|
return result
|
||||||
|
|
||||||
@pyqtSlot(str, result = int)
|
@pyqtSlot(str, result = int)
|
||||||
def getNumberOfInstalledPackagesByAuthor(self, author_id: str) -> int:
|
def getNumberOfInstalledPackagesByAuthor(self, author_id: str) -> int:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue