mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 01:37:51 -06:00
Swap text and title for message.
Move link opening code into the PrintJobAwaitingApprovalMessage.py CURA-9221
This commit is contained in:
parent
9b20a1b37f
commit
1a023f7285
3 changed files with 21 additions and 14 deletions
|
@ -16,6 +16,7 @@ from cura.CuraApplication import CuraApplication
|
|||
from cura.UltimakerCloud import UltimakerCloudConstants
|
||||
from cura.UltimakerCloud.UltimakerCloudScope import UltimakerCloudScope
|
||||
from .ToolPathUploader import ToolPathUploader
|
||||
from ..Messages.PrintJobAwaitingApprovalMessage import PrintJobPendingApprovalMessage
|
||||
from ..Models.BaseModel import BaseModel
|
||||
from ..Models.Http.CloudClusterResponse import CloudClusterResponse
|
||||
from ..Models.Http.CloudClusterStatus import CloudClusterStatus
|
||||
|
@ -241,6 +242,8 @@ class CloudApiClient:
|
|||
status_code, response = self._parseReply(reply)
|
||||
if status_code >= 300 and on_error is not None:
|
||||
on_error()
|
||||
elif "data" in response and "status" in response["data"] and response["data"]["status"] == "wait_approval":
|
||||
PrintJobPendingApprovalMessage().show()
|
||||
else:
|
||||
self._parseModels(response, on_finished, model)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue