No longer update upon switching active profile

It's not necessary since our model doesn't depend on that.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-28 08:49:28 +02:00
parent 944d1090cf
commit 972531b0a6
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -5,6 +5,7 @@ from PyQt5.QtCore import Qt, pyqtSlot
from UM.Logger import Logger
from UM.Qt.ListModel import ListModel
import cura.CuraApplication # Imported this way to prevent circular imports.
from cura.Machines.ContainerTree import ContainerTree
#
@ -24,13 +25,12 @@ class QualityManagementModel(ListModel):
self.addRoleName(self.QualityGroupRole, "quality_group")
self.addRoleName(self.QualityChangesGroupRole, "quality_changes_group")
from cura.CuraApplication import CuraApplication
self._container_registry = CuraApplication.getInstance().getContainerRegistry()
self._machine_manager = CuraApplication.getInstance().getMachineManager()
self._extruder_manager = CuraApplication.getInstance().getExtruderManager()
application = cura.CuraApplication.CuraApplication.getInstance()
self._container_registry = application.getContainerRegistry()
self._machine_manager = application.getMachineManager()
self._extruder_manager = application.getExtruderManager()
self._machine_manager.globalContainerChanged.connect(self._update)
self._machine_manager.activeQualityGroupChanged.connect(self._onChange)
self._update()