Add link out to learn more

CURA-9221
This commit is contained in:
joeydelarago 2022-08-25 14:13:25 +02:00
parent 1a023f7285
commit 30692bb4b8

View file

@ -29,5 +29,8 @@ class PrintJobPendingApprovalMessage(Message):
def _onActionTriggered(self, message: Message, action: str): def _onActionTriggered(self, message: Message, action: str):
""" Callback function for the "Manage print jobs" button on the pending approval notification. """ """ Callback function for the "Manage print jobs" button on the pending approval notification. """
if action == "manage_print_jobs": match action:
QDesktopServices.openUrl(QUrl("https://ultimaker.com/")) case "manage_print_jobs":
QDesktopServices.openUrl(QUrl("https://ultimaker.com/"))
case "learn_more":
QDesktopServices.openUrl(QUrl("https://ultimaker.com/"))