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.
This commit is contained in:
Ruben D 2018-03-22 01:56:12 +01:00
parent 8e6ee41124
commit 5d51b75f4d
No known key found for this signature in database
GPG key ID: 6B42C9465E304A62

View file

@ -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()