mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-11 16:57:51 -06:00
Remove enum, python has no build in support for getting enum from string value. This will be in Python 3.11 though.
CURA-9221
This commit is contained in:
parent
ad70566dc6
commit
abb6d20beb
2 changed files with 3 additions and 9 deletions
|
@ -31,7 +31,7 @@ from ..Models.Http.CloudClusterResponse import CloudClusterResponse
|
|||
from ..Models.Http.CloudClusterStatus import CloudClusterStatus
|
||||
from ..Models.Http.CloudPrintJobUploadRequest import CloudPrintJobUploadRequest
|
||||
from ..Models.Http.CloudPrintResponse import CloudPrintResponse
|
||||
from ..Models.Http.CloudPrintJobResponse import CloudPrintJobResponse, CloudUploadStatus
|
||||
from ..Models.Http.CloudPrintJobResponse import CloudPrintJobResponse
|
||||
from ..Models.Http.ClusterPrinterStatus import ClusterPrinterStatus
|
||||
from ..Models.Http.ClusterPrintJobStatus import ClusterPrintJobStatus
|
||||
|
||||
|
@ -232,7 +232,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||
:param job_response: The response received from the cloud API.
|
||||
"""
|
||||
|
||||
if job_response.status is CloudUploadStatus.WAIT_APPROVAL:
|
||||
if job_response.status is "wait_approval":
|
||||
PrintJobPendingApprovalMessage().show()
|
||||
|
||||
if not self._tool_path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue