Cura/plugins/UM3NetworkPrinting/src/Messages/PrintJobUploadBlockedMessage.py
Jelle Spijker 2263969d5f
Updated message with message types
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00

19 lines
720 B
Python

# Copyright (c) 2019 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from UM import i18nCatalog
from UM.Message import Message
I18N_CATALOG = i18nCatalog("cura")
class PrintJobUploadBlockedMessage(Message):
"""Message shown when uploading a print job to a cluster is blocked because another upload is already in progress."""
def __init__(self) -> None:
super(PrintJobUploadBlockedMessage, self).__init__(
text = I18N_CATALOG.i18nc("@info:status", "Please wait until the current job has been sent."),
title = I18N_CATALOG.i18nc("@info:title", "Print error"),
lifetime = 10,
message_type = Message.MessageType.ERROR
)