mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 05:37:50 -06:00
Return empty string so we get no errors about assigning undefined to string
This commit is contained in:
parent
68cde3f780
commit
b5e8f01cfa
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,7 @@ Rectangle {
|
||||||
visible: base.progress >= 0 && base.progress < 0.99 ? false : true
|
visible: base.progress >= 0 && base.progress < 0.99 ? false : true
|
||||||
color: UM.Theme.colors.save_button_estimated_text;
|
color: UM.Theme.colors.save_button_estimated_text;
|
||||||
font: UM.Theme.fonts.small;
|
font: UM.Theme.fonts.small;
|
||||||
text:
|
text: {
|
||||||
if(base.progress < 0) {
|
if(base.progress < 0) {
|
||||||
//: Save button label
|
//: Save button label
|
||||||
return qsTr("Please load a 3D model");
|
return qsTr("Please load a 3D model");
|
||||||
|
@ -60,6 +60,8 @@ Rectangle {
|
||||||
//: Save button label
|
//: Save button label
|
||||||
return qsTr("Estimated Print-time");
|
return qsTr("Estimated Print-time");
|
||||||
}
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
id: printDurationLabel
|
id: printDurationLabel
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue