diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index a1c8c78..a249002 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "krampui" -version = "1.1.8" +version = "1.2.0" authors = ["Snipcola", "Pixeluted"] license = "MIT" edition = "2021" diff --git a/src/assets/scripts/main.js b/src/assets/scripts/main.js index 225bbcc..fa24e73 100644 --- a/src/assets/scripts/main.js +++ b/src/assets/scripts/main.js @@ -210,7 +210,7 @@ async function getSettings() { autoUpdate: json.autoUpdate === undefined ? true : json.autoUpdate }; else { - const settings = { + const defaultSettings = { autoInject: false, topMost: true, keyToggle: false, @@ -219,13 +219,13 @@ async function getSettings() { autoUpdate: true }; - await saveSettings(settings); - return settings; + await saveSettings(defaultSettings); + return defaultSettings; } } async function saveSettings(data) { - await writeFile(`${dataDirectory}/settings`, JSON.stringify(settings)); + await writeFile(`${dataDirectory}/settings`, JSON.stringify(data)); } async function getWindowDimensions() {