Clarify user-facing string to remove internal terminology

The user doesn't know what a global stack is. This is a message that more clearly specifies what is really happening as far as the user can see.

The global stack may be None if this code is executed while there is no active printer. Normally the only time there is no active printer is:
- during first launch, while in the welcome screen
- during start-up until the profiles have been loaded
- if there was a profile corruption of some kind with the active printer.

So this function should not get called during those times. It probably isn't called except for the last case (in which case it's acceptable I guess).
This change is made after a request from a translator what the hell this means.

Contributes to issue CURA-7783.
This commit is contained in:
Ghostkeeper 2020-10-27 10:54:07 +01:00
parent 4804072625
commit 5cfe18d31c
No known key found for this signature in database
GPG Key ID: D2A8871EE34EC59A

View File

@ -440,7 +440,7 @@ class CuraContainerRegistry(ContainerRegistry):
global_stack = cura.CuraApplication.CuraApplication.getInstance().getGlobalContainerStack()
if not global_stack:
return False, catalog.i18nc("@info:status", "Global stack is missing.")
return False, catalog.i18nc("@info:status", "There is no active printer yet.")
definition_id = ContainerTree.getInstance().machines[global_stack.definition.getId()].quality_definition
profile.setDefinition(definition_id)