mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add experimental warning and error message types to two messages
These are for our testers to be able to test the new message types. Later they will be added to all messages that need them. Contributes to issue CURA-7278.
This commit is contained in:
parent
9b42db3a3f
commit
ff7b2a673f
2 changed files with 7 additions and 4 deletions
|
@ -39,6 +39,7 @@ class ArrangeObjectsJob(Job):
|
||||||
no_full_solution_message = Message(
|
no_full_solution_message = Message(
|
||||||
i18n_catalog.i18nc("@info:status",
|
i18n_catalog.i18nc("@info:status",
|
||||||
"Unable to find a location within the build volume for all objects"),
|
"Unable to find a location within the build volume for all objects"),
|
||||||
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"))
|
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"),
|
||||||
|
message_type = Message.MessageType.ERROR)
|
||||||
no_full_solution_message.show()
|
no_full_solution_message.show()
|
||||||
self.finished.emit(self)
|
self.finished.emit(self)
|
||||||
|
|
|
@ -95,9 +95,11 @@ class BuildVolume(SceneNode):
|
||||||
self._edge_disallowed_size = None
|
self._edge_disallowed_size = None
|
||||||
|
|
||||||
self._build_volume_message = Message(catalog.i18nc("@info:status",
|
self._build_volume_message = Message(catalog.i18nc("@info:status",
|
||||||
"The build volume height has been reduced due to the value of the"
|
"The build volume height has been reduced due to the value of the"
|
||||||
" \"Print Sequence\" setting to prevent the gantry from colliding"
|
" \"Print Sequence\" setting to prevent the gantry from colliding"
|
||||||
" with printed models."), title = catalog.i18nc("@info:title", "Build Volume"))
|
" with printed models."),
|
||||||
|
title = catalog.i18nc("@info:title", "Build Volume"),
|
||||||
|
message_type = Message.MessageType.WARNING)
|
||||||
|
|
||||||
self._global_container_stack = None # type: Optional[GlobalStack]
|
self._global_container_stack = None # type: Optional[GlobalStack]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue