mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 04:59:00 +08:00
Fix QML null warnings
This commit is contained in:
parent
15f4d1231b
commit
65e1314538
@ -24,7 +24,7 @@ UM.MainWindow
|
||||
title:
|
||||
{
|
||||
let result = "";
|
||||
if(PrintInformation.jobName != "")
|
||||
if(PrintInformation !== null && PrintInformation.jobName != "")
|
||||
{
|
||||
result += PrintInformation.jobName + " - ";
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ Button
|
||||
rightMargin: UM.Theme.getSize("wide_margin").width
|
||||
}
|
||||
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
|
||||
Cura.IconWithText
|
||||
|
@ -13,7 +13,7 @@ Cura.ExpandableComponent
|
||||
|
||||
dragPreferencesNamePrefix: "view/settings"
|
||||
|
||||
property bool preSlicedData: PrintInformation.preSliced
|
||||
property bool preSlicedData: PrintInformation !== null && PrintInformation.preSliced
|
||||
|
||||
contentPadding: UM.Theme.getSize("default_lining").width
|
||||
contentHeaderTitle: catalog.i18nc("@label", "Print settings")
|
||||
|
Loading…
x
Reference in New Issue
Block a user