From 15ad528aa54aa35d45f8bba2d397f64e7b84c5e4 Mon Sep 17 00:00:00 2001 From: Ruben D Date: Thu, 22 Mar 2018 01:34:04 +0100 Subject: [PATCH] Remove happy message Since the button can only get shown when there is something wrong, the happy message can never be shown any more. Contributes to issue CURA-4557. --- plugins/ModelChecker/ModelChecker.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py index ab8154cfec..60804be28b 100644 --- a/plugins/ModelChecker/ModelChecker.py +++ b/plugins/ModelChecker/ModelChecker.py @@ -31,11 +31,6 @@ class ModelChecker(QObject, Extension): self._button_view = None self._has_warnings = False - self._happy_message = Message(catalog.i18nc( - "@info:status", - "The Model Checker did not detect any problems with your model / chosen materials combination."), - lifetime = 5, - title = catalog.i18nc("@info:title", "Model Checker")) self._caution_message = Message("", #Message text gets set when the message gets shown, to display the models in question. lifetime = 0, title = catalog.i18nc("@info:title", "Model Checker Warning")) @@ -77,15 +72,6 @@ class ModelChecker(QObject, Extension): if node.callDecoration("isSliceable"): yield node - ## Display warning message - def showWarningMessage(self, ): - self._happy_message.hide() - self._caution_message.show() - - def showHappyMessage(self): - self._caution_message.hide() - self._happy_message.show() - ## Creates the view used by show popup. The view is saved because of the fairly aggressive garbage collection. def _createView(self): Logger.log("d", "Creating model checker view.") @@ -120,9 +106,7 @@ class ModelChecker(QObject, Extension): self._createView() if self._has_warnings: - self.showWarningMessage() - else: - self.showHappyMessage() + self.self._caution_message.show() def getMaterialShrinkage(self): global_container_stack = Application.getInstance().getGlobalContainerStack()