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:
parent
a2455daa6c
commit
dead1197bd
@ -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"
|
||||||
|
|
||||||
|
@ -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"}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user