mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 19:56:00 +08:00
Connect to MachineManager's addMachineRequested so we can show the add printer dialog
This commit is contained in:
parent
47e96a9e2a
commit
f618b54d69
@ -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…
x
Reference in New Issue
Block a user