mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-23 05:13:15 +08:00
Return empty string so we get no errors about assigning undefined to string
This commit is contained in:
parent
68cde3f780
commit
b5e8f01cfa
@ -46,7 +46,7 @@ Rectangle {
|
||||
visible: base.progress >= 0 && base.progress < 0.99 ? false : true
|
||||
color: UM.Theme.colors.save_button_estimated_text;
|
||||
font: UM.Theme.fonts.small;
|
||||
text:
|
||||
text: {
|
||||
if(base.progress < 0) {
|
||||
//: Save button label
|
||||
return qsTr("Please load a 3D model");
|
||||
@ -60,6 +60,8 @@ Rectangle {
|
||||
//: Save button label
|
||||
return qsTr("Estimated Print-time");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Label {
|
||||
id: printDurationLabel
|
||||
|
Loading…
x
Reference in New Issue
Block a user