mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 13:03:59 -06:00
Update all usage of activeMachine to the new API
This commit is contained in:
parent
1ff3a30ede
commit
1947d773a3
3 changed files with 6 additions and 6 deletions
|
@ -66,7 +66,7 @@ class PrintInformation(QObject):
|
|||
self._slice_pass = None
|
||||
self._slice_reason = None
|
||||
|
||||
Application.getInstance().activeMachineChanged.connect(self._onActiveMachineChanged)
|
||||
Application.getInstance().getMachineManager().activeMachineInstanceChanged.connect(self._onActiveMachineChanged)
|
||||
self._onActiveMachineChanged()
|
||||
|
||||
Application.getInstance().getController().getScene().sceneChanged.connect(self._onSceneChanged)
|
||||
|
@ -179,7 +179,7 @@ class PrintInformation(QObject):
|
|||
if self._current_settings:
|
||||
self._current_settings.settingChanged.disconnect(self._onSettingChanged)
|
||||
|
||||
self._current_settings = Application.getInstance().getActiveMachine()
|
||||
self._current_settings = Application.getInstance().getMachineManager().getActiveMachineInstance()
|
||||
|
||||
if self._current_settings:
|
||||
self._current_settings.settingChanged.connect(self._onSettingChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue