mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Determine skeleton loading properly
This commit is contained in:
parent
75f52c5a24
commit
60758093f1
3 changed files with 5 additions and 5 deletions
|
@ -187,7 +187,7 @@ Item
|
|||
}
|
||||
model:
|
||||
{
|
||||
if (OutputDevice.receivedPrintJobs)
|
||||
if (OutputDevice.receivedData)
|
||||
{
|
||||
return OutputDevice.queuedPrintJobs
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ Component
|
|||
id: carousel
|
||||
printers:
|
||||
{
|
||||
if (OutputDevice.receivedPrintJobs)
|
||||
if (OutputDevice.receivedData)
|
||||
{
|
||||
return OutputDevice.printers
|
||||
}
|
||||
|
|
|
@ -103,9 +103,9 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
|
|||
return [print_job for print_job in self._print_jobs if
|
||||
print_job.assignedPrinter is not None and print_job.state not in self.QUEUED_PRINT_JOBS_STATES]
|
||||
|
||||
@pyqtProperty(bool, notify=printJobsChanged)
|
||||
def receivedPrintJobs(self) -> bool:
|
||||
return bool(self._print_jobs)
|
||||
@pyqtProperty(bool, notify=_clusterPrintersChanged)
|
||||
def receivedData(self) -> bool:
|
||||
return self._has_received_printers
|
||||
|
||||
# Get the amount of printers in the cluster.
|
||||
@pyqtProperty(int, notify=_clusterPrintersChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue