1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2026-02-08 00:32:27 +00:00

Fix fullscreen menu not added on linux.

This commit is contained in:
Filippo Scognamiglio
2026-01-22 22:58:15 +01:00
parent 25695c0a9f
commit 9f05d729a7

View File

@@ -39,12 +39,13 @@ MenuBar {
MenuItem { action: showsettingsAction }
}
Menu {
id: viewMenu
title: qsTr("View")
Instantiator {
model: !appSettings.isMacOS ? 1 : 0
delegate: MenuItem { action: fullscreenAction }
onObjectAdded: (index, object) => menu.insertItem(index, object)
onObjectRemoved: (index, object) => menu.removeItem(object)
onObjectAdded: (index, object) => viewMenu.insertItem(index, object)
onObjectRemoved: (index, object) => viewMenu.removeItem(object)
}
MenuItem { action: zoomIn }
MenuItem { action: zoomOut }