2
0
mirror of https://github.com/Alia5/GlosSI.git synced 2024-11-05 06:00:14 +00:00

Add Configurator option to exclude target-window from windowlist

This commit is contained in:
Peter Repukat 2023-01-14 13:43:59 +01:00
parent 924a7ecba7
commit 2824329687
2 changed files with 40 additions and 2 deletions

View File

@ -411,6 +411,7 @@ QVariantMap UIModel::getDefaultConf() const
{"window",
QJsonObject{
{"disableOverlay", false},
{"hideAltTab", false},
{"maxFps", QJsonValue::Null},
{"scale", QJsonValue::Null},
{"windowMode", false},

View File

@ -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