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:
@@ -39,12 +39,13 @@ MenuBar {
|
|||||||
MenuItem { action: showsettingsAction }
|
MenuItem { action: showsettingsAction }
|
||||||
}
|
}
|
||||||
Menu {
|
Menu {
|
||||||
|
id: viewMenu
|
||||||
title: qsTr("View")
|
title: qsTr("View")
|
||||||
Instantiator {
|
Instantiator {
|
||||||
model: !appSettings.isMacOS ? 1 : 0
|
model: !appSettings.isMacOS ? 1 : 0
|
||||||
delegate: MenuItem { action: fullscreenAction }
|
delegate: MenuItem { action: fullscreenAction }
|
||||||
onObjectAdded: (index, object) => menu.insertItem(index, object)
|
onObjectAdded: (index, object) => viewMenu.insertItem(index, object)
|
||||||
onObjectRemoved: (index, object) => menu.removeItem(object)
|
onObjectRemoved: (index, object) => viewMenu.removeItem(object)
|
||||||
}
|
}
|
||||||
MenuItem { action: zoomIn }
|
MenuItem { action: zoomIn }
|
||||||
MenuItem { action: zoomOut }
|
MenuItem { action: zoomOut }
|
||||||
|
|||||||
Reference in New Issue
Block a user