mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:49:00 +08:00
Fix QML null warnings
This commit is contained in:
parent
15f4d1231b
commit
65e1314538
@ -24,7 +24,7 @@ UM.MainWindow
|
|||||||
title:
|
title:
|
||||||
{
|
{
|
||||||
let result = "";
|
let result = "";
|
||||||
if(PrintInformation.jobName != "")
|
if(PrintInformation !== null && PrintInformation.jobName != "")
|
||||||
{
|
{
|
||||||
result += PrintInformation.jobName + " - ";
|
result += PrintInformation.jobName + " - ";
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ Button
|
|||||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||||
}
|
}
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
visible: configuration.buildplateConfiguration != "" && false //Buildplate is disabled as long as we have no printers that properly support buildplate swapping (so we can't test).
|
visible: configuration !== null && configuration.buildplateConfiguration != "" && false //Buildplate is disabled as long as we have no printers that properly support buildplate swapping (so we can't test).
|
||||||
|
|
||||||
// Show the type of buildplate. The first letter is capitalized
|
// Show the type of buildplate. The first letter is capitalized
|
||||||
Cura.IconWithText
|
Cura.IconWithText
|
||||||
|
@ -13,7 +13,7 @@ Cura.ExpandableComponent
|
|||||||
|
|
||||||
dragPreferencesNamePrefix: "view/settings"
|
dragPreferencesNamePrefix: "view/settings"
|
||||||
|
|
||||||
property bool preSlicedData: PrintInformation.preSliced
|
property bool preSlicedData: PrintInformation !== null && PrintInformation.preSliced
|
||||||
|
|
||||||
contentPadding: UM.Theme.getSize("default_lining").width
|
contentPadding: UM.Theme.getSize("default_lining").width
|
||||||
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
|
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user