mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:49:01 +08: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
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user