Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben D <rubend@tutanota.com>2018-03-22 03:34:04 +0300
committerRuben D <rubend@tutanota.com>2018-03-22 03:34:04 +0300
commit15ad528aa54aa35d45f8bba2d397f64e7b84c5e4 (patch)
treeceecece9b5ba7a2bf93f1d6bf7c4608ca6b740ce /plugins/ModelChecker
parent5bf93a8398974502c7ddaa5644cf3133a3d19a3a (diff)
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.
Diffstat (limited to 'plugins/ModelChecker')
-rw-r--r--plugins/ModelChecker/ModelChecker.py18
1 files changed, 1 insertions, 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()