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

Move showMenuBar toggle inside advanced settings.

This commit is contained in:
Filippo Scognamiglio
2026-01-17 22:09:29 +01:00
parent be4b1f366c
commit 0313a00b4f
4 changed files with 7 additions and 38 deletions

View File

@@ -28,7 +28,7 @@ ColumnLayout {
GroupBox { GroupBox {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
title: qsTr("Command") title: qsTr("Miscellaneous")
padding: appSettings.defaultMargin padding: appSettings.defaultMargin
ColumnLayout { ColumnLayout {
@@ -39,12 +39,6 @@ ColumnLayout {
checked: appSettings.useCustomCommand checked: appSettings.useCustomCommand
onCheckedChanged: appSettings.useCustomCommand = checked onCheckedChanged: appSettings.useCustomCommand = checked
} }
// Workaround for QTBUG-31627 for pre 5.3.0
Binding {
target: useCustomCommand
property: "checked"
value: appSettings.useCustomCommand
}
TextField { TextField {
id: customCommand id: customCommand
Layout.fillWidth: true Layout.fillWidth: true
@@ -59,26 +53,18 @@ ColumnLayout {
Component.onCompleted: settings_window.closing.connect( Component.onCompleted: settings_window.closing.connect(
saveSetting) saveSetting)
} }
}
}
GroupBox {
title: qsTr("Cursor")
Layout.fillWidth: true
Layout.fillHeight: true
padding: appSettings.defaultMargin
ColumnLayout {
anchors.fill: parent
CheckBox { CheckBox {
id: blinkingCursor id: blinkingCursor
text: qsTr("Blinking Cursor") text: qsTr("Blinking Cursor")
checked: appSettings.blinkingCursor checked: appSettings.blinkingCursor
onCheckedChanged: appSettings.blinkingCursor = checked onCheckedChanged: appSettings.blinkingCursor = checked
} }
Binding { CheckBox {
target: blinkingCursor id: showMenubar
property: "checked" text: qsTr("Show Menubar")
value: appSettings.blinkingCursor enabled: !appSettings.isMacOS
checked: appSettings.showMenubar
onCheckedChanged: appSettings.showMenubar = checked
} }
} }
} }

View File

@@ -52,15 +52,6 @@ QtObject {
sourceComponent: OSXMenu { } sourceComponent: OSXMenu { }
} }
property Action showMenubarAction: Action {
text: qsTr("Show Menubar")
enabled: !appSettings.isMacOS
shortcut: "Ctrl+Shift+M"
checkable: true
checked: appSettings.showMenubar
onTriggered: appSettings.showMenubar = !appSettings.showMenubar
}
property Action fullscreenAction: Action { property Action fullscreenAction: Action {
text: qsTr("Fullscreen") text: qsTr("Fullscreen")
enabled: !appSettings.isMacOS enabled: !appSettings.isMacOS

View File

@@ -64,10 +64,6 @@ Menu {
action: fullscreenAction action: fullscreenAction
visible: fullscreenAction.enabled visible: fullscreenAction.enabled
} }
MenuItem {
action: showMenubarAction
visible: showMenubarAction.enabled
}
MenuItem { MenuItem {
action: zoomInAction action: zoomInAction
} }

View File

@@ -56,10 +56,6 @@ MenuBar {
action: fullscreenAction action: fullscreenAction
visible: fullscreenAction.enabled visible: fullscreenAction.enabled
} }
MenuItem {
action: showMenubarAction
visible: showMenubarAction.enabled
}
MenuItem { MenuItem {
action: zoomInAction action: zoomInAction
} }