Make MachineNodeLoadJob protected inner class

It should not be used outside of this class.

Contributes to issue CURA-6793.
This commit is contained in:
Ghostkeeper 2019-10-22 17:57:30 +02:00
parent f3736f0576
commit f1e35907d2
No known key found for this signature in database
GPG key ID: 59A4C0959592C05C

View file

@ -77,7 +77,7 @@ class ContainerTree:
## Ran after completely starting up the application.
def _onStartupFinished(self):
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.
#
@ -129,7 +129,7 @@ class ContainerTree:
## Pre-loads all currently added printers as a background task so that
# switching printers in the interface is faster.
class MachineNodeLoadJob(Job):
class _MachineNodeLoadJob(Job):
## Creates a new background task.
# \param tree_root The container tree instance. This cannot be
# obtained through the singleton static function since the instance