mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Move the visible check within the component.
Contributes to CURA-5772.
This commit is contained in:
parent
5a5adb71cd
commit
c8bdf7321c
2 changed files with 3 additions and 4 deletions
|
@ -14,6 +14,9 @@ Item
|
|||
property var connectedDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
|
||||
property var panelWidth: control.width
|
||||
|
||||
// Make this component only visible when it's a network printer and it is connected
|
||||
visible: Cura.MachineManager.activeMachineNetworkKey != "" && Cura.MachineManager.printerConnected
|
||||
|
||||
function switchPopupState()
|
||||
{
|
||||
popup.visible ? popup.close() : popup.open()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue