mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Prevent QML warning
This commit is contained in:
parent
07e1a21aeb
commit
272796fd95
1 changed files with 11 additions and 2 deletions
|
@ -17,8 +17,17 @@ Column
|
|||
property int currentExtruderIndex: Cura.ExtruderManager.activeExtruderIndex;
|
||||
property bool currentExtruderVisible: extrudersList.visible;
|
||||
property bool printerConnected: Cura.MachineManager.printerConnected
|
||||
property bool hasManyPrinterTypes: printerConnected ? Cura.MachineManager.printerOutputDevices[0].connectedPrintersTypeCount.length > 1 : false
|
||||
|
||||
property bool hasManyPrinterTypes:
|
||||
{
|
||||
if (printerConnected)
|
||||
{
|
||||
if (Cura.MachineManager.printerOutputDevices[0].connectedPrintersTypeCount != null)
|
||||
{
|
||||
return Cura.MachineManager.printerOutputDevices[0].connectedPrintersTypeCount.length > 1;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
spacing: Math.round(UM.Theme.getSize("sidebar_margin").width * 0.9)
|
||||
|
||||
signal showTooltip(Item item, point location, string text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue