diff --git a/GlosSIConfig/UIModel.cpp b/GlosSIConfig/UIModel.cpp index 005db9b..51e3bce 100644 --- a/GlosSIConfig/UIModel.cpp +++ b/GlosSIConfig/UIModel.cpp @@ -411,6 +411,7 @@ QVariantMap UIModel::getDefaultConf() const {"window", QJsonObject{ {"disableOverlay", false}, + {"hideAltTab", false}, {"maxFps", QJsonValue::Null}, {"scale", QJsonValue::Null}, {"windowMode", false}, diff --git a/GlosSIConfig/qml/AdvancedTargetSettings.qml b/GlosSIConfig/qml/AdvancedTargetSettings.qml index 916ee81..f1b072e 100644 --- a/GlosSIConfig/qml/AdvancedTargetSettings.qml +++ b/GlosSIConfig/qml/AdvancedTargetSettings.qml @@ -140,7 +140,7 @@ CollapsiblePane { RPane { width: parent.width / 2 - 8 - height: 248 + height: 280 radius: 4 Material.elevation: 32 bgOpacity: 0.97 @@ -290,7 +290,7 @@ CollapsiblePane { } RPane { width: parent.width / 2 - 8 - height: 248 + height: 280 radius: 4 Material.elevation: 32 bgOpacity: 0.97 @@ -359,6 +359,43 @@ CollapsiblePane { height: 24 } } + } + Item { + width: 1 + height: 4 + } + + Row { + CheckBox { + id: hideAltTabCheckbox + text: qsTr("Hide GlosSI from Windowlist (Alt+Tab)") + checked: shortcutInfo.window.hideAltTab + onCheckedChanged: shortcutInfo.window.hideAltTab = checked + } + RoundButton { + onClicked: () => { + helpInfoDialog.titleText = qsTr("Hide GlosSI from Windowlist (Alt+Tab)") + helpInfoDialog.text = + qsTr("Hides GlosSI from the Windowlist (Alt+Tab)") + + "\n" + + qsTr("You can close the GlosSI-Window via the system-tray") + + "\n" + + "\n" + + qsTr("Might help with Steam remote play.") + + helpInfoDialog.open() + } + width: 48 + height: 48 + Material.elevation: 0 + anchors.topMargin: 16 + Image { + anchors.centerIn: parent + source: "qrc:/svg/help_outline_white_24dp.svg" + width: 24 + height: 24 + } + } } Item { width: 1