Disable menuItems if they aren't visible

This prevents the shortcuts from breaking
This commit is contained in:
Jaime van Kessel 2022-01-17 15:32:27 +01:00
parent 901f6c4b63
commit 288aeec2db
2 changed files with 3 additions and 1 deletions

View file

@ -41,6 +41,7 @@ Cura.Menu
}
}
shortcut: model.shortcut
enabled: saveProjectMenu.shouldBeVisible
}
onObjectAdded: saveProjectMenu.insertItem(index, object)
onObjectRemoved: saveProjectMenu.removeItem(object)