mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:59:05 +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; }
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: UM.Controller
|
||||
onContextMenuRequested: {
|
||||
if(id == 0) {
|
||||
contextMenu.popup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileDialog {
|
||||
id: openDialog;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user