mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
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:
parent
8e6ee41124
commit
5d51b75f4d
1 changed files with 1 additions and 3 deletions
|
@ -24,7 +24,6 @@ class ModelChecker(QObject, Extension):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self._button_view = None
|
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.
|
self._caution_message = Message("", #Message text gets set when the message gets shown, to display the models in question.
|
||||||
lifetime = 0,
|
lifetime = 0,
|
||||||
|
@ -100,8 +99,7 @@ class ModelChecker(QObject, Extension):
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def showWarnings(self):
|
def showWarnings(self):
|
||||||
if self._has_warnings:
|
self._caution_message.show()
|
||||||
self.self._caution_message.show()
|
|
||||||
|
|
||||||
def getMaterialShrinkage(self):
|
def getMaterialShrinkage(self):
|
||||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue