mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 11:13:16 +08:00
Only highlight the currently active machine
CURA-6483
This commit is contained in:
parent
d18c11a2c1
commit
e1766b72ec
@ -32,16 +32,7 @@ ListView
|
|||||||
width: listView.width
|
width: listView.width
|
||||||
outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
|
outputDevice: Cura.MachineManager.printerOutputDevices.length >= 1 ? Cura.MachineManager.printerOutputDevices[0] : null
|
||||||
|
|
||||||
checked:
|
checked: Cura.MachineManager.activeMachineId == model.id
|
||||||
{
|
|
||||||
// If the machine has a remote connection
|
|
||||||
var result = Cura.MachineManager.activeMachineId == model.id
|
|
||||||
if (Cura.MachineManager.activeMachineHasRemoteConnection)
|
|
||||||
{
|
|
||||||
result |= Cura.MachineManager.activeMachineNetworkGroupName == model.metadata["group_name"]
|
|
||||||
}
|
|
||||||
return result
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user