diff --git a/GlosSIConfig/UIModel.cpp b/GlosSIConfig/UIModel.cpp index 70817a8..d0d2ff2 100644 --- a/GlosSIConfig/UIModel.cpp +++ b/GlosSIConfig/UIModel.cpp @@ -343,6 +343,7 @@ QVariantMap UIModel::getDefaultConf() const {"version", 1}, {"extendedLogging", false}, {"snapshotNotify", false}, + {"ignoreEGS", true}, { "controller", QJsonObject{ diff --git a/GlosSIConfig/qml/AdvancedTargetSettings.qml b/GlosSIConfig/qml/AdvancedTargetSettings.qml index 05c80ca..935095d 100644 --- a/GlosSIConfig/qml/AdvancedTargetSettings.qml +++ b/GlosSIConfig/qml/AdvancedTargetSettings.qml @@ -74,7 +74,7 @@ CollapsiblePane { } } Label { - text: qsTr("Recommended to disable for launcher-games") + text: qsTr("(Might cause issues with launcher-games)") wrapMode: Text.WordWrap width: parent.width leftPadding: 32 @@ -88,6 +88,16 @@ CollapsiblePane { shortcutInfo.launch.waitForChildProcs = checked } } + CheckBox { + height: subTitle != "" || (shortcutInfo.launch.launchPath || "").includes("epicgames.launcher") ? 32 : 0 + visible: subTitle != "" || (shortcutInfo.launch.launchPath || "").includes("epicgames.launcher") + id: ignoreEGS + text: qsTr("Ignore EpicGamesLauncher process") + checked: shortcutInfo.ignoreEGS + onCheckedChanged: function(){ + shortcutInfo.ignoreEGS = checked + } + } } Column { spacing: 2 diff --git a/GlosSIConfig/qml/ShortcutProps.qml b/GlosSIConfig/qml/ShortcutProps.qml index 985d2c5..ecf7b3a 100644 --- a/GlosSIConfig/qml/ShortcutProps.qml +++ b/GlosSIConfig/qml/ShortcutProps.qml @@ -190,7 +190,10 @@ Item { placeholderText: qsTr("...") enabled: launchApp.checked text: shortcutInfo.launch.launchPath || "" - onTextChanged: shortcutInfo.launch.launchPath = text + onTextChanged: function() { + shortcutInfo.launch.launchPath = text + shortcutInfo = shortcutInfo + } } } Button {