mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
No longer reset to default intent when configuration changed
This caused the intent to be reset every time a change was made. CURA-6600
This commit is contained in:
parent
ede007b860
commit
78ab218cc2
2 changed files with 3 additions and 19 deletions
|
@ -10,7 +10,7 @@ from cura.Settings.IntentManager import IntentManager
|
|||
from UM.Qt.ListModel import ListModel
|
||||
from UM.Settings.ContainerRegistry import ContainerRegistry #To update the list if anything changes.
|
||||
from PyQt5.QtCore import pyqtProperty, pyqtSignal
|
||||
|
||||
import cura.CuraApplication
|
||||
if TYPE_CHECKING:
|
||||
from UM.Settings.ContainerRegistry import ContainerInterface
|
||||
|
||||
|
@ -48,7 +48,7 @@ class IntentCategoryModel(ListModel):
|
|||
|
||||
ContainerRegistry.getInstance().containerAdded.connect(self._onContainerChange)
|
||||
ContainerRegistry.getInstance().containerRemoved.connect(self._onContainerChange)
|
||||
IntentManager.getInstance().configurationChanged.connect(self.update)
|
||||
cura.CuraApplication.CuraApplication.getInstance().getMachineManager().activeStackChanged.connect(self.update)
|
||||
|
||||
self.update()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue