Skip to content

Commit 9f05d72

Browse files
committed
Fix fullscreen menu not added on linux.
1 parent 25695c0 commit 9f05d72

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/qml/menus/WindowMenu.qml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ MenuBar {
3939
MenuItem { action: showsettingsAction }
4040
}
4141
Menu {
42+
id: viewMenu
4243
title: qsTr("View")
4344
Instantiator {
4445
model: !appSettings.isMacOS ? 1 : 0
4546
delegate: MenuItem { action: fullscreenAction }
46-
onObjectAdded: (index, object) => menu.insertItem(index, object)
47-
onObjectRemoved: (index, object) => menu.removeItem(object)
47+
onObjectAdded: (index, object) => viewMenu.insertItem(index, object)
48+
onObjectRemoved: (index, object) => viewMenu.removeItem(object)
4849
}
4950
MenuItem { action: zoomIn }
5051
MenuItem { action: zoomOut }

0 commit comments

Comments
 (0)