diff --git a/src/qml/CSLOLDialogSettings.qml b/src/qml/CSLOLDialogSettings.qml index 9c9dd497..3cd386ad 100644 --- a/src/qml/CSLOLDialogSettings.qml +++ b/src/qml/CSLOLDialogSettings.qml @@ -26,6 +26,7 @@ Dialog { property alias themePrimaryColor: themePrimaryColorBox.currentIndex property alias themeAccentColor: themeAccentColorBox.currentIndex property alias suppressInstallConflicts: suppressInstallConflictsCheck.checked + property alias enableAutoRun: enableAutoRunCheck.checked property var colors_LIST: [ "Red", @@ -107,6 +108,12 @@ Dialog { checked: false Layout.fillWidth: true } + Switch { + id: enableAutoRunCheck + text: qsTr("Auto Run on start") + checked: false + Layout.fillWidth: true + } } ColumnLayout { id: settingsThemeTab diff --git a/src/qml/main.qml b/src/qml/main.qml index d7f7f9b5..6b041e66 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -23,6 +23,7 @@ ApplicationWindow { property alias ignorebad: cslolDialogSettings.ignorebad property alias suppressInstallConflicts: cslolDialogSettings.suppressInstallConflicts property alias disableUpdates: cslolDialogSettings.disableUpdates + property alias enableAutoRun: cslolDialogSettings.enableAutoRun property alias themeDarkMode: cslolDialogSettings.themeDarkMode property alias themePrimaryColor: cslolDialogSettings.themePrimaryColor property alias themeAccentColor: cslolDialogSettings.themeAccentColor @@ -270,7 +271,9 @@ ApplicationWindow { for(let fileName in mods) { cslolModsView.addMod(fileName, mods[fileName], fileName in profileMods) } - checkGamePath() + if(checkGamePath() && settings.enableAutoRun) { + cslolToolBar.saveProfileAndRun(true) + } } onModDeleted: {} onInstalledMod: function(fileName, infoData) {