From 0ec3e0972b84cb3bbde88b17614176361aea5fd7 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Mon, 6 Apr 2020 18:01:57 +0200 Subject: [PATCH] Add an image to the cloud printer sync message CURA-7055 --- .../src/Cloud/CloudOutputDeviceManager.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 95a6a73610..91c1ba645c 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -1,6 +1,6 @@ # Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. - +import os from typing import Dict, List, Optional from PyQt5.QtCore import QTimer @@ -127,6 +127,11 @@ class CloudOutputDeviceManager: if not new_devices: return + image_path = os.path.join( + CuraApplication.getInstance().getPluginRegistry().getPluginPath("UM3NetworkPrinting") or "", + "resources", "svg", "cloud-flow-completed.svg" + ) + message = Message( title = self.I18N_CATALOG.i18ncp( "info:status", @@ -135,7 +140,8 @@ class CloudOutputDeviceManager: len(new_devices) ), progress = 0, - lifetime = 0 + lifetime = 0, + image_source = image_path ) message.show()