From 5d51b75f4d604667e0418820985df673abf2ebaf Mon Sep 17 00:00:00 2001 From: Ruben D Date: Thu, 22 Mar 2018 01:56:12 +0100 Subject: [PATCH] Remove unnecessary _has_warnings We just always show the message because the button can only be pressed while there are warnings. Contributes to issue CURA-4557. --- plugins/ModelChecker/ModelChecker.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py index e5a09f7ea1..1ceaa775d3 100644 --- a/plugins/ModelChecker/ModelChecker.py +++ b/plugins/ModelChecker/ModelChecker.py @@ -24,7 +24,6 @@ class ModelChecker(QObject, Extension): super().__init__() self._button_view = None - self._has_warnings = False self._caution_message = Message("", #Message text gets set when the message gets shown, to display the models in question. lifetime = 0, @@ -100,8 +99,7 @@ class ModelChecker(QObject, Extension): @pyqtSlot() def showWarnings(self): - if self._has_warnings: - self.self._caution_message.show() + self._caution_message.show() def getMaterialShrinkage(self): global_container_stack = Application.getInstance().getGlobalContainerStack()