mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-10-10 07:17:52 -06:00
Connect to MachineManager's addMachineRequested so we can show the add printer dialog
This commit is contained in:
parent
47e96a9e2a
commit
f618b54d69
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,7 @@ class CuraApplication(QtApplication):
|
|||
self._platform_activity = False
|
||||
|
||||
self.getMachineManager().activeMachineInstanceChanged.connect(self._onActiveMachineChanged)
|
||||
self.getMachineManager().addMachineRequested.connect(self._onAddMachineRequested)
|
||||
self.getController().getScene().sceneChanged.connect(self.updatePlatformActivity)
|
||||
|
||||
Resources.addType(self.ResourceTypes.QmlFiles, "qml")
|
||||
|
@ -520,3 +521,5 @@ class CuraApplication(QtApplication):
|
|||
job.finished.connect(self._onFileLoaded)
|
||||
job.start()
|
||||
|
||||
def _onAddMachineRequested(self):
|
||||
self.requestAddPrinter.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue