aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorGitExample <git@example.com>2022-02-05 17:14:46 +0100
committerGitExample <git@example.com>2022-02-05 17:14:46 +0100
commit651c0b32d37dd03c581dc5c9cac8ec293816a636 (patch)
tree0905a44b87cc523c54cc5a1ca8b674bbdb2f2c24 /src/index.js
parent633433e14f0e6d489090aac81cbb27d05284055c (diff)
downloadViper-651c0b32d37dd03c581dc5c9cac8ec293816a636.tar.gz
Viper-651c0b32d37dd03c581dc5c9cac8ec293816a636.zip
button now updates when mod is removed
I also fixed the archive not being extracted properly for some reason, the setTimeout() seems to solve it, no clue if it needs to be adjusted in the future or replaced with something that works 100% of the time, I'm not even quite sure why it happens in the first place.
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index a847020..a0cb4db 100644
--- a/src/index.js
+++ b/src/index.js
@@ -47,8 +47,10 @@ function start() {
ipcMain.on("winLog", (event, ...args) => {win.webContents.send("log", ...args)});
ipcMain.on("winAlert", (event, ...args) => {win.webContents.send("alert", ...args)});
ipcMain.on("ns-update-event", (event) => win.webContents.send("ns-update-event", event));
+ ipcMain.on("failedmod", (event, modname) => {win.webContents.send("failedmod", modname)});
+ ipcMain.on("removedmod", (event, modname) => {win.webContents.send("removedmod", modname)});
+ ipcMain.on("installedmod", (event, modname) => {win.webContents.send("installedmod", modname)});
ipcMain.on("guigetmods", (event, ...args) => {win.webContents.send("mods", utils.mods.list())});
- ipcMain.on("installedmod", (event, modname) => {console.log(modname);win.webContents.send("installedmod", modname)})
win.webContents.on("dom-ready", () => {
win.webContents.send("mods", utils.mods.list());