Add an image to the cloud printer sync message

CURA-7055
This commit is contained in:
Nino van Hooff 2020-04-06 18:01:57 +02:00
parent b141bb139e
commit 0ec3e0972b

View file

@ -1,6 +1,6 @@
# Copyright (c) 2019 Ultimaker B.V. # Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher. # Cura is released under the terms of the LGPLv3 or higher.
import os
from typing import Dict, List, Optional from typing import Dict, List, Optional
from PyQt5.QtCore import QTimer from PyQt5.QtCore import QTimer
@ -127,6 +127,11 @@ class CloudOutputDeviceManager:
if not new_devices: if not new_devices:
return return
image_path = os.path.join(
CuraApplication.getInstance().getPluginRegistry().getPluginPath("UM3NetworkPrinting") or "",
"resources", "svg", "cloud-flow-completed.svg"
)
message = Message( message = Message(
title = self.I18N_CATALOG.i18ncp( title = self.I18N_CATALOG.i18ncp(
"info:status", "info:status",
@ -135,7 +140,8 @@ class CloudOutputDeviceManager:
len(new_devices) len(new_devices)
), ),
progress = 0, progress = 0,
lifetime = 0 lifetime = 0,
image_source = image_path
) )
message.show() message.show()