mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
move undefined/null check
This commit is contained in:
parent
fdcce1780e
commit
1468c3aae5
1 changed files with 1 additions and 5 deletions
|
|
@ -276,12 +276,8 @@ Cura.MachineAction
|
|||
width: parent.width
|
||||
wrapMode: Text.WordWrap
|
||||
text:{
|
||||
if (base.selectedPrinter == undefined || base.selectedPrinter == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
// The property cluster size does not exist for older UM3 devices.
|
||||
if(base.selectedPrinter != undefined && (base.selectedPrinter.clusterSize == null || base.selectedPrinter.clusterSize == 1))
|
||||
if(!base.selectedPrinter && (base.selectedPrinter.clusterSize == null || base.selectedPrinter.clusterSize == 1))
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue