mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Add monitor print button for cloud print
The button redirects the user to the cloud page CURA-8018
This commit is contained in:
parent
920e220bdb
commit
b4a8cb1b82
1 changed files with 10 additions and 1 deletions
|
@ -256,7 +256,16 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
||||||
"""
|
"""
|
||||||
self._uploaded_print_job = self._pre_upload_print_job
|
self._uploaded_print_job = self._pre_upload_print_job
|
||||||
self._progress.hide()
|
self._progress.hide()
|
||||||
PrintJobUploadSuccessMessage().show()
|
message = PrintJobUploadSuccessMessage()
|
||||||
|
message.addAction("monitor print",
|
||||||
|
name=I18N_CATALOG.i18nc("@action:button", "Monitor Print"),
|
||||||
|
icon="",
|
||||||
|
description="Remove the plugin",
|
||||||
|
button_align=message.ActionButtonAlignment.ALIGN_RIGHT)
|
||||||
|
df_url = "https://digitalfactory.ultimaker.com/app/jobs/%s?utm_source=cura&utm_medium=software&utm_campaign=monitor-button" % self._cluster.cluster_id
|
||||||
|
message.pyQtActionTriggered.connect(lambda message, action: (QDesktopServices.openUrl(QUrl(df_url)), message.hide()))
|
||||||
|
|
||||||
|
message.show()
|
||||||
self.writeFinished.emit()
|
self.writeFinished.emit()
|
||||||
|
|
||||||
def _onPrintUploadSpecificError(self, reply: "QNetworkReply", _: "QNetworkReply.NetworkError"):
|
def _onPrintUploadSpecificError(self, reply: "QNetworkReply", _: "QNetworkReply.NetworkError"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue