From cbc19b13eb7aec6b5ecafd331ea19e17792c77f1 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 4 Apr 2017 17:40:34 +0200 Subject: [PATCH] Deprecate the activeMachineName/Id properties in favour of activeMachine --- cura/Settings/MachineManager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 8df42ea325..52eeb18a3a 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -11,6 +11,7 @@ from UM.Application import Application from UM.Preferences import Preferences from UM.Logger import Logger from UM.Message import Message +from UM.Decorators import deprecated from UM.Settings.ContainerRegistry import ContainerRegistry from UM.Settings.ContainerStack import ContainerStack @@ -482,6 +483,7 @@ class MachineManager(QObject): return "" @pyqtProperty(str, notify = globalContainerChanged) + @deprecated("Use activeMachine.name", "2.6") def activeMachineName(self) -> str: if self._global_container_stack: return self._global_container_stack.getName() @@ -489,6 +491,7 @@ class MachineManager(QObject): return "" @pyqtProperty(str, notify = globalContainerChanged) + @deprecated("Use activeMachine.id", "2.6") def activeMachineId(self) -> str: if self._global_container_stack: return self._global_container_stack.getId()