mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:35:53 +08:00
Expose contextMenuRequested signal to QML
This commit is contained in:
parent
444936a545
commit
7e2bd91359
@ -232,6 +232,15 @@ UM.MainWindow {
|
|||||||
MenuItem { action: actions.deleteSelection; }
|
MenuItem { action: actions.deleteSelection; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Connections {
|
||||||
|
target: UM.Controller
|
||||||
|
onContextMenuRequested: {
|
||||||
|
if(id == 0) {
|
||||||
|
contextMenu.popup();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FileDialog {
|
FileDialog {
|
||||||
id: openDialog;
|
id: openDialog;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user