1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Hide by default menubar on linux.

This commit is contained in:
Filippo Scognamiglio 2018-11-23 22:00:28 +01:00
parent a2455daa6c
commit dead1197bd
3 changed files with 8 additions and 9 deletions

View File

@ -41,7 +41,7 @@ QtObject{
property int height: 768 property int height: 768
property bool fullscreen: false property bool fullscreen: false
property bool showMenubar: true property bool showMenubar: Qt.platform.os === "osx" ? true : false
property string wintitle: "cool-retro-term" property string wintitle: "cool-retro-term"

View File

@ -11,7 +11,7 @@ MenuBar {
} }
Menu { Menu {
title: qsTr("Edit") title: qsTr("Edit")
visible: defaultMenuBar.visible visible: defaultMenuBar.visible && appSettings.showMenubar
MenuItem {action: copyAction} MenuItem {action: copyAction}
MenuItem {action: pasteAction} MenuItem {action: pasteAction}
MenuSeparator{visible: Qt.platform.os !== "osx"} MenuSeparator{visible: Qt.platform.os !== "osx"}

View File

@ -149,13 +149,12 @@ Item{
id: linuxContextMenu id: linuxContextMenu
Menu{ Menu{
id: contextmenu id: contextmenu
MenuItem{action: copyAction} MenuItem { action: copyAction }
MenuItem{action: pasteAction} MenuItem { action: pasteAction }
MenuSeparator{} MenuSeparator { visible: !appSettings.showMenubar }
MenuItem{action: fullscreenAction} MenuItem { action: showsettingsAction ; visible: !appSettings.showMenubar}
MenuItem{action: showMenubarAction} MenuSeparator { visible: !appSettings.showMenubar }
MenuSeparator{visible: !appSettings.showMenubar} CRTMainMenuBar { visible: !appSettings.showMenubar }
CRTMainMenuBar{visible: !appSettings.showMenubar}
} }
} }
Component { Component {