mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:49:02 +08:00
Make MachineNodeLoadJob protected inner class
It should not be used outside of this class. Contributes to issue CURA-6793.
This commit is contained in:
parent
f3736f0576
commit
f1e35907d2
@ -77,7 +77,7 @@ class ContainerTree:
|
|||||||
## Ran after completely starting up the application.
|
## Ran after completely starting up the application.
|
||||||
def _onStartupFinished(self):
|
def _onStartupFinished(self):
|
||||||
currently_added = ContainerRegistry.getInstance().findContainerStacks() # Find all currently added global stacks.
|
currently_added = ContainerRegistry.getInstance().findContainerStacks() # Find all currently added global stacks.
|
||||||
JobQueue.getInstance().add(self.MachineNodeLoadJob(self, currently_added))
|
JobQueue.getInstance().add(self._MachineNodeLoadJob(self, currently_added))
|
||||||
|
|
||||||
## Dictionary-like object that contains the machines.
|
## Dictionary-like object that contains the machines.
|
||||||
#
|
#
|
||||||
@ -129,7 +129,7 @@ class ContainerTree:
|
|||||||
|
|
||||||
## Pre-loads all currently added printers as a background task so that
|
## Pre-loads all currently added printers as a background task so that
|
||||||
# switching printers in the interface is faster.
|
# switching printers in the interface is faster.
|
||||||
class MachineNodeLoadJob(Job):
|
class _MachineNodeLoadJob(Job):
|
||||||
## Creates a new background task.
|
## Creates a new background task.
|
||||||
# \param tree_root The container tree instance. This cannot be
|
# \param tree_root The container tree instance. This cannot be
|
||||||
# obtained through the singleton static function since the instance
|
# obtained through the singleton static function since the instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user