mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
Expose contextMenuRequested signal to QML
This commit is contained in:
parent
444936a545
commit
7e2bd91359
1 changed files with 9 additions and 0 deletions
|
@ -232,6 +232,15 @@ UM.MainWindow {
|
|||
MenuItem { action: actions.deleteSelection; }
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: UM.Controller
|
||||
onContextMenuRequested: {
|
||||
if(id == 0) {
|
||||
contextMenu.popup();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileDialog {
|
||||
id: openDialog;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue