mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Make request to Marketplace API when package list loads
We don't parse the response just yet, but this is part of the work. Contributes to issue CURA-8556.
This commit is contained in:
parent
5851ad52c6
commit
4337e81b77
2 changed files with 37 additions and 5 deletions
|
@ -15,14 +15,14 @@ from UM.PluginRegistry import PluginRegistry # To find out where we are stored
|
|||
if TYPE_CHECKING:
|
||||
from PyQt5.QtCore import QObject
|
||||
|
||||
ROOT_URL = f"{UltimakerCloudConstants.CuraCloudAPIRoot}/cura-packages/v{UltimakerCloudConstants.CuraCloudAPIVersion}/cura/v{CuraSDKVersion}" # Root of all Marketplace API requests.
|
||||
PACKAGES_URL = f"{ROOT_URL}/packages" # URL to use for requesting the list of packages.
|
||||
|
||||
class Marketplace(Extension):
|
||||
"""
|
||||
The main managing object for the Marketplace plug-in.
|
||||
"""
|
||||
|
||||
ROOT_URL = f"{UltimakerCloudConstants.CuraCloudAPIRoot}/cura-packages/v{UltimakerCloudConstants.CuraCloudAPIVersion}/cura/v{CuraSDKVersion}" # Root of all Marketplace API requests.
|
||||
PACKAGES_URL = f"{ROOT_URL}/packages" # URL to use for requesting the list of packages.
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._window: Optional["QObject"] = None # If the window has been loaded yet, it'll be cached in here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue