mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 05:58:58 +08:00
Simplify code
CURA-6447
This commit is contained in:
parent
f94344263b
commit
61ee2ec85c
@ -1106,7 +1106,6 @@ class CuraApplication(QtApplication):
|
||||
self._camera_animation.setTarget(Selection.getSelectedObject(0).getWorldPosition())
|
||||
self._camera_animation.start()
|
||||
|
||||
requestAddPrinter = pyqtSignal()
|
||||
activityChanged = pyqtSignal()
|
||||
sceneBoundingBoxChanged = pyqtSignal()
|
||||
|
||||
|
@ -788,12 +788,6 @@ UM.MainWindow
|
||||
onTriggered: addMachineDialog.show()
|
||||
}
|
||||
|
||||
Connections
|
||||
{
|
||||
target: CuraApplication
|
||||
onRequestAddPrinter: addMachineDialog.show()
|
||||
}
|
||||
|
||||
AboutDialog
|
||||
{
|
||||
id: aboutDialog
|
||||
|
@ -45,7 +45,7 @@ UM.ManagementPage
|
||||
{
|
||||
text: catalog.i18nc("@action:button", "Add");
|
||||
iconName: "list-add";
|
||||
onClicked: CuraApplication.requestAddPrinter()
|
||||
onClicked: Cura.Actions.addMachine.trigger()
|
||||
},
|
||||
Button
|
||||
{
|
||||
|
@ -20,6 +20,7 @@ Window
|
||||
id: dialog
|
||||
|
||||
flags: Qt.Dialog
|
||||
modality: Qt.ApplicationModal
|
||||
|
||||
minimumWidth: 580 * screenScaleFactor
|
||||
minimumHeight: 600 * screenScaleFactor
|
||||
|
Loading…
x
Reference in New Issue
Block a user