aboutsummaryrefslogtreecommitdiff
path: root/src/modules/settings.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-04 17:16:00 +0100
committer0neGal <mail@0negal.com>2024-02-04 17:16:00 +0100
commitee816e6a1aa908df381dcc488b1193d1e78e0ca6 (patch)
tree88dc2820edfcbe025ad8c6c75e812c619c6363c4 /src/modules/settings.js
parentf165e540d0d74946eed2b8e5c857e7ee56227f8a (diff)
downloadViper-ee816e6a1aa908df381dcc488b1193d1e78e0ca6.tar.gz
Viper-ee816e6a1aa908df381dcc488b1193d1e78e0ca6.zip
merge src/modules/window.js into src/win.js
I intended to do this when creating src/win.js, but wanted it to be in a different commit, as that commit made pretty large changes as well. So no more `main_win`, `win_show` and confusion between what `win` is.
Diffstat (limited to 'src/modules/settings.js')
-rw-r--r--src/modules/settings.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/settings.js b/src/modules/settings.js
index ae02c79..5449570 100644
--- a/src/modules/settings.js
+++ b/src/modules/settings.js
@@ -2,11 +2,11 @@ const fs = require("fs");
const path = require("path");
const { app, ipcMain } = require("electron");
-const json = require("./json");
+const win = require("../win");
const lang = require("../lang");
-const win = require("./window");
console = require("./console");
+const json = require("./json");
var invalid_settings = false;
@@ -15,7 +15,7 @@ ipcMain.on("save-settings", (event, obj) => {
})
ipcMain.on("reset-config", async () => {
- let confirmation = await win.confirm(
+ let confirmation = await win().confirm(
lang("gui.settings.miscbuttons.reset_config_alert")
)