aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html4
-rw-r--r--src/app/settings.js5
2 files changed, 6 insertions, 3 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 0bd6694..f605136 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -26,11 +26,11 @@
<div class="popup" id="options">
<div class="misc">
<div style="width:100%"></div>
- <button id="apply" onclick="Settings.apply()">
+ <button id="apply" onclick="Settings.toggle(false);Settings.apply()">
<img src="icons/apply.png">
Save
</button>
- <button id="close" onclick="Settings.toggle(false)">
+ <button id="close" onclick="Settings.toggle(false);Settings.load()">
<img src="icons/close.png">
Discard
</button>
diff --git a/src/app/settings.js b/src/app/settings.js
index e558d61..4921e07 100644
--- a/src/app/settings.js
+++ b/src/app/settings.js
@@ -20,7 +20,10 @@ var Settings = {
overlay.classList.toggle("shown")
options.classList.toggle("shown")
},
- apply: () => {},
+ apply: () => {
+ settings = {...settings, ...Settings.get()};
+ ipcRenderer.send("savesettings", Settings.get());
+ },
reloadSwitches: () => {
let switches = document.querySelectorAll(".switch");