aboutsummaryrefslogtreecommitdiff
path: root/views/script/settings_global.js
diff options
context:
space:
mode:
Diffstat (limited to 'views/script/settings_global.js')
-rw-r--r--views/script/settings_global.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/views/script/settings_global.js b/views/script/settings_global.js
index e284585..90f1f6e 100644
--- a/views/script/settings_global.js
+++ b/views/script/settings_global.js
@@ -46,22 +46,22 @@ $(document).keydown(function(e) {
if (document.getElementById("setting-music").innerText === "1") {
document.getElementById("setting-music").innerText = "0";
currentNest.config.music = false;
- Nest.export(homedir + "/.kartik/current.kfn", currentNest);
+ Nest.export(homedir + "/.kartik/current.kfn", currentNest);require('electron').ipcRenderer.send("reloadNest")
} else {
document.getElementById("setting-music").innerText = "1";
currentNest.config.music = true;
- Nest.export(homedir + "/.kartik/current.kfn", currentNest);
+ Nest.export(homedir + "/.kartik/current.kfn", currentNest);require('electron').ipcRenderer.send("reloadNest")
}
}
if (id === "voice") {
if (document.getElementById("setting-voice").innerText === "1") {
document.getElementById("setting-voice").innerText = "0";
currentNest.config.music = false;
- Nest.export(homedir + "/.kartik/current.kfn", currentNest);
+ Nest.export(homedir + "/.kartik/current.kfn", currentNest);require('electron').ipcRenderer.send("reloadNest")
} else {
document.getElementById("setting-voice").innerText = "1";
currentNest.config.music = true;
- Nest.export(homedir + "/.kartik/current.kfn", currentNest);
+ Nest.export(homedir + "/.kartik/current.kfn", currentNest);require('electron').ipcRenderer.send("reloadNest")
}
}
if (id === "lang") {
@@ -86,7 +86,7 @@ $(document).keydown(function(e) {
if (ci !== -1 && ni !== -1) {
document.getElementById("setting-lang").innerText = slng[slst[ni]];
currentNest.config.lang = slst[ni];
- Nest.export(homedir + "/.kartik/current.kfn", currentNest);
+ Nest.export(homedir + "/.kartik/current.kfn", currentNest);require('electron').ipcRenderer.send("reloadNest")
require('@electron/remote').getCurrentWindow().lp = slst[ni];
}
}