Add isOnline role to GlobalStacksModel

This way we can filter for only online printers or display whether printers are online or not in the future.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-08 14:09:12 +02:00
parent 93953630ec
commit 32c63c2757
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 6 additions and 2 deletions

View file

@ -247,7 +247,7 @@ Window
}
source: UM.Theme.getIcon("CloudBadge", "low")
color: "red" //TODO: connectionStatus == "printer_cloud_not_available" ? UM.Theme.getColor("cloud_unavailable") : UM.Theme.getColor("primary")
color: model.isOnline ? UM.Theme.getColor("primary") : UM.Theme.getColor("cloud_unavailable")
//Make a themeable circle in the background so we can change it in other themes.
Rectangle