mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 07:44:22 +08:00
Determine skeleton loading properly
This commit is contained in:
parent
75f52c5a24
commit
60758093f1
@ -187,7 +187,7 @@ Item
|
|||||||
}
|
}
|
||||||
model:
|
model:
|
||||||
{
|
{
|
||||||
if (OutputDevice.receivedPrintJobs)
|
if (OutputDevice.receivedData)
|
||||||
{
|
{
|
||||||
return OutputDevice.queuedPrintJobs
|
return OutputDevice.queuedPrintJobs
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ Component
|
|||||||
id: carousel
|
id: carousel
|
||||||
printers:
|
printers:
|
||||||
{
|
{
|
||||||
if (OutputDevice.receivedPrintJobs)
|
if (OutputDevice.receivedData)
|
||||||
{
|
{
|
||||||
return OutputDevice.printers
|
return OutputDevice.printers
|
||||||
}
|
}
|
||||||
|
@ -103,9 +103,9 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
return [print_job for print_job in self._print_jobs if
|
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]
|
print_job.assignedPrinter is not None and print_job.state not in self.QUEUED_PRINT_JOBS_STATES]
|
||||||
|
|
||||||
@pyqtProperty(bool, notify=printJobsChanged)
|
@pyqtProperty(bool, notify=_clusterPrintersChanged)
|
||||||
def receivedPrintJobs(self) -> bool:
|
def receivedData(self) -> bool:
|
||||||
return bool(self._print_jobs)
|
return self._has_received_printers
|
||||||
|
|
||||||
# Get the amount of printers in the cluster.
|
# Get the amount of printers in the cluster.
|
||||||
@pyqtProperty(int, notify=_clusterPrintersChanged)
|
@pyqtProperty(int, notify=_clusterPrintersChanged)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user