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 bool fullscreen: false
property bool showMenubar: true
property bool showMenubar: Qt.platform.os === "osx" ? true : false
property string wintitle: "cool-retro-term"

View File

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

View File

@ -151,9 +151,8 @@ Item{
id: contextmenu
MenuItem { action: copyAction }
MenuItem { action: pasteAction }
MenuSeparator{}
MenuItem{action: fullscreenAction}
MenuItem{action: showMenubarAction}
MenuSeparator { visible: !appSettings.showMenubar }
MenuItem { action: showsettingsAction ; visible: !appSettings.showMenubar}
MenuSeparator { visible: !appSettings.showMenubar }
CRTMainMenuBar { visible: !appSettings.showMenubar }
}