mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Use new property names for cloud connection detection
This commit is contained in:
parent
163a231365
commit
a5761cb56b
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ Rectangle
|
||||||
{
|
{
|
||||||
id: viewportOverlay
|
id: viewportOverlay
|
||||||
|
|
||||||
property bool isConnected: Cura.MachineManager.activeMachineHasActiveNetworkConnection || Cura.MachineManager.activeMachineHasActiveCloudConnection
|
property bool isConnected: Cura.MachineManager.activeMachineIsUsingCloudConnection
|
||||||
property bool isNetworkConfigurable: ["Ultimaker 3", "Ultimaker 3 Extended", "Ultimaker S5"].indexOf(Cura.MachineManager.activeMachineDefinitionName) > -1
|
property bool isNetworkConfigurable: ["Ultimaker 3", "Ultimaker 3 Extended", "Ultimaker S5"].indexOf(Cura.MachineManager.activeMachineDefinitionName) > -1
|
||||||
property bool isNetworkConfigured:
|
property bool isNetworkConfigured:
|
||||||
{
|
{
|
||||||
|
|
|
@ -171,11 +171,11 @@ Item
|
||||||
// When printing over the cloud we don't recieve print jobs until there is one, so
|
// When printing over the cloud we don't recieve print jobs until there is one, so
|
||||||
// unless there's at least one print job we'll be stuck with skeleton loading
|
// unless there's at least one print job we'll be stuck with skeleton loading
|
||||||
// indefinitely.
|
// indefinitely.
|
||||||
if (Cura.MachineManager.activeMachineHasActiveCloudConnection)
|
if (Cura.MachineManager.activeMachineIsUsingCloudConnection || OutputDevice.receivedPrintJobs)
|
||||||
{
|
{
|
||||||
return OutputDevice.queuedPrintJobs
|
return OutputDevice.queuedPrintJobs
|
||||||
}
|
}
|
||||||
return OutputDevice.receivedPrintJobs ? OutputDevice.queuedPrintJobs : [null,null]
|
return [null, null]
|
||||||
}
|
}
|
||||||
spacing: 6 // TODO: Theme!
|
spacing: 6 // TODO: Theme!
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue