diff options
author | Jaime van Kessel <nallath@gmail.com> | 2021-07-27 12:54:43 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2021-07-27 12:54:43 +0300 |
commit | 900db57f0f21c27e8ccd5a23671f0cd7dbf6b9e3 (patch) | |
tree | 52a745fb4ae86e061e7dab95ec1e5b34a4efefa3 /plugins/SimulationView | |
parent | f11079adcf1b6bc8e523446c1ff30b647fcb4baa (diff) |
Update messages to use the message_types
CURA-8418
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationView.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index 57209f2678..5fc2669d2d 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -126,9 +126,13 @@ class SimulationView(CuraView): self._compatibility_mode = self._evaluateCompatibilityMode() self._wireprint_warning_message = Message(catalog.i18nc("@info:status", "Cura does not accurately display layers when Wire Printing is enabled."), - title = catalog.i18nc("@info:title", "Simulation View")) - self._slice_first_warning_message = Message(catalog.i18nc("@info:status", "Nothing is shown because you need to slice first."), title = catalog.i18nc("@info:title", "No layers to show"), - option_text = catalog.i18nc("@info:option_text", "Do not show this message again"), option_state = False) + title = catalog.i18nc("@info:title", "Simulation View"), + message_type = Message.MessageType.WARNING) + self._slice_first_warning_message = Message(catalog.i18nc("@info:status", "Nothing is shown because you need to slice first."), + title = catalog.i18nc("@info:title", "No layers to show"), + option_text = catalog.i18nc("@info:option_text", "Do not show this message again"), + option_state = False, + message_type = Message.MessageType.WARNING) self._slice_first_warning_message.optionToggled.connect(self._onDontAskMeAgain) CuraApplication.getInstance().getPreferences().addPreference(self._no_layers_warning_preference, True) |