Put PackageList in Marketplace namespace

This way it's not available to the rest of Cura, especially since PackageList is not such an uncommon name. It could give name collisions. Moreover, the rest of Cura doesn't need to have a list of packages from the Marketplace, so it's better separation.

Contributes to issue CURA-8556.
This commit is contained in:
Ghostkeeper 2021-10-25 15:35:28 +02:00
parent 797ff9c573
commit 77d1bebbdb
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ class Marketplace(Extension):
super().__init__()
self._window: Optional["QObject"] = None # If the window has been loaded yet, it'll be cached in here.
qmlRegisterType(PackageList, "Cura", 1, 7, "PackageList")
qmlRegisterType(PackageList, "Marketplace", 1, 0, "PackageList")
@pyqtSlot()
def show(self) -> None: