mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Switch between correct states of the un-/installed buttons
Contributes to CURA-8587
This commit is contained in:
parent
0ffaafc8c0
commit
23cc7084c4
3 changed files with 12 additions and 6 deletions
|
@ -19,7 +19,7 @@ from cura.CuraPackageManager import CuraPackageManager
|
|||
from cura.UltimakerCloud.UltimakerCloudScope import UltimakerCloudScope # To make requests to the Ultimaker API with correct authorization.
|
||||
|
||||
from .PackageModel import PackageModel
|
||||
from .Constants import USER_PACKAGES_URL
|
||||
from .Constants import USER_PACKAGES_URL, PACKAGES_URL
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from PyQt5.QtCore import QObject
|
||||
|
@ -195,6 +195,9 @@ class PackageList(ListModel):
|
|||
:param update: A flag if this is download request is an update process
|
||||
"""
|
||||
|
||||
if url == "":
|
||||
url = f"{PACKAGES_URL}/{package_id}/download"
|
||||
|
||||
def downloadFinished(reply: "QNetworkReply") -> None:
|
||||
self._downloadFinished(package_id, reply, update)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue