Move message triggering into CloudOutputDevice so that the campaign link can include the cluster_id.

CURA-9221
This commit is contained in:
joeydelarago 2022-08-26 10:57:35 +02:00
parent 119fb32681
commit 9c599870e3
3 changed files with 8 additions and 5 deletions

View file

@ -16,7 +16,6 @@ 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
@ -202,7 +201,6 @@ class CloudApiClient:
if "data" in response:
data = response["data"]
if "status" in data and data["status"] == "wait_approval":
PrintJobPendingApprovalMessage().show()
on_finished_empty = cast(Callable[[List], Any], on_finished)
on_finished_empty([])
elif isinstance(data, list):