GlosSIConfig: Disable overlay option

pull/169/head
Peter Repukat 2 years ago
parent f7b4578919
commit fda2887a2f

@ -82,6 +82,7 @@ void UIModel::readConfigs()
json["windowMode"] = filejson["window"]["windowMode"];
json["maxFps"] = filejson["window"]["maxFps"];
json["scale"] = filejson["window"]["scale"];
json["disableOverlay"] = filejson["window"]["disableOverlay"];
json["maxControllers"] = filejson["controller"]["maxControllers"];
json["name"] = filejson.contains("name") ? filejson["name"] : QString(name).replace(QRegularExpression("\\.json"), "");
@ -355,6 +356,7 @@ void UIModel::writeTarget(const QJsonObject& json, const QString& name)
windowObject["windowMode"] = json["windowMode"];
windowObject["maxFps"] = json["maxFps"];
windowObject["scale"] = json["scale"];
windowObject["disableOverlay"] = json["disableOverlay"];
fileJson["window"] = windowObject;
QJsonObject controllerObject;

@ -42,7 +42,8 @@ Item {
maxFps: null,
scale: null,
icon: null,
maxControllers: 4
maxControllers: 4,
disableOverlay: false
})
function resetInfo() {
@ -59,7 +60,8 @@ Item {
maxFps: null,
scale: null,
icon: null,
maxControllers: 4
maxControllers: 4,
disableOverlay: false
})
}
@ -73,6 +75,7 @@ Item {
hideDevices.checked = shortcutInfo.hideDevices || false
windowMode.checked = shortcutInfo.windowMode || false
maxControllersSpinBox.value = shortcutInfo.maxControllers
disableOverlayCheckbox = shortcutInfo.disableOverlay || false
}
Column {
@ -334,6 +337,24 @@ Item {
width: parent.width
leftPadding: 32
}
Item {
width: 1
height: 4
}
CheckBox {
id: disableOverlayCheckbox
text: qsTr("Disable Steam/GlosSI overlay")
checked: shortcutInfo.disableOverlay
onCheckedChanged: shortcutInfo.disableOverlay = checked
}
Label {
text: qsTr("Only controller emulation - No extra window")
wrapMode: Text.WordWrap
width: parent.width
leftPadding: 32
topPadding: -8
}
}
}

Loading…
Cancel
Save