From ecf820f3dbeaa66002670163816421cb6ae31cf9 Mon Sep 17 00:00:00 2001 From: Remco Burema Date: Wed, 11 Aug 2021 12:35:54 +0200 Subject: [PATCH] Fix tests. CURA-8473 --- plugins/DigitalLibrary/src/BackwardsCompatibleMessage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/DigitalLibrary/src/BackwardsCompatibleMessage.py b/plugins/DigitalLibrary/src/BackwardsCompatibleMessage.py index 3723005013..c09acc3e82 100644 --- a/plugins/DigitalLibrary/src/BackwardsCompatibleMessage.py +++ b/plugins/DigitalLibrary/src/BackwardsCompatibleMessage.py @@ -1,12 +1,12 @@ # Copyright (c) 2021 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. -from UM.Application import Application +from cura.CuraApplication import CuraApplication from UM.Message import Message from UM.Version import Version def getBackwardsCompatibleMessage(text: str, title: str, lifetime: int, message_type_str: str) -> Message: - if Application.getInstance().getAPIVersion() < Version("7.7.0"): + if CuraApplication.getInstance().getAPIVersion() < Version("7.7.0"): return Message(text=text, title=title, lifetime=lifetime) else: message_type = Message.MessageType.NEUTRAL