Fixing issue with object creation from menubar.

This commit is contained in:
Adsooi 2021-08-15 17:14:00 +02:00
parent 4afe0d4d63
commit 63d9f00e96
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

View file

@ -88,7 +88,7 @@ MenuBar {
model: Object.keys(Objects.types)
MenuItem {
text: modelData
text: Objects.types[modelData].displayType()
visible: Objects.types[modelData].createable()
height: visible ? implicitHeight : 0
icon.name: modelData