1
0

UI here and there

This commit is contained in:
Sander van Grieken
2022-04-01 16:20:14 +02:00
parent ddbd785a46
commit 201669d178
3 changed files with 6 additions and 12 deletions

View File

@@ -106,7 +106,7 @@ ApplicationWindow
ToolButton {
id: menuButton
enabled: stack.currentItem.menu !== undefined && stack.currentItem.menu.count > 0
enabled: stack.currentItem && stack.currentItem.menu ? stack.currentItem.menu.count > 0 : false
text: enabled ? qsTr("≡") : ''
font.pixelSize: constants.fontSizeXLarge
onClicked: {