mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-29 15:25:02 +08:00
Determine skeleton loading properly
This commit is contained in:
parent
75f52c5a24
commit
60758093f1
@ -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…
x
Reference in New Issue
Block a user