From f1e35907d255dbc2a148df144982f83a3eeae786 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 22 Oct 2019 17:57:30 +0200 Subject: [PATCH] Make MachineNodeLoadJob protected inner class It should not be used outside of this class. Contributes to issue CURA-6793. --- cura/Machines/ContainerTree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Machines/ContainerTree.py b/cura/Machines/ContainerTree.py index a058eef72e..b4e7980734 100644 --- a/cura/Machines/ContainerTree.py +++ b/cura/Machines/ContainerTree.py @@ -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