Fix cura crashing

`activeQualityDisplayNameMap` no longer returned a dict and could thus not be a pyqt property

Cura-9773
This commit is contained in:
c.lamboo 2022-11-28 13:14:47 +01:00
parent 8e8437eab0
commit be40920042
3 changed files with 6 additions and 7 deletions

View file

@ -56,7 +56,7 @@ UM.Dialog
UM.Label
{
id: infoText
text: catalog.i18nc("@text:window, %1 is a profile name", "You have customized some profile settings. Would you like to Keep these changed settings after switching profiles? Alternatively, you can discard the changes to load the defaults from '%1'.").arg(Cura.MachineManager.activeQualityDisplayNameMap["main"])
text: catalog.i18nc("@text:window, %1 is a profile name", "You have customized some profile settings. Would you like to Keep these changed settings after switching profiles? Alternatively, you can discard the changes to load the defaults from '%1'.").arg(Cura.MachineManager.activeQualityDisplayNameMainStringParts.join(" - "))
anchors.left: parent.left
anchors.right: parent.right
wrapMode: Text.WordWrap
@ -83,7 +83,7 @@ UM.Dialog
columnHeaders: [
catalog.i18nc("@title:column", "Profile settings"),
Cura.MachineManager.activeQualityDisplayNameMap["main"],
Cura.MachineManager.activeQualityDisplayNameMainStringParts.join(" - "),
catalog.i18nc("@title:column", "Current changes")
]
model: UM.TableModel