diff options
author | 0neGal <mail@0negal.com> | 2022-05-30 22:48:39 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-05-30 23:02:50 +0200 |
commit | 1c06ab53f1cf2228e1034a66538f3a31a14e3743 (patch) | |
tree | e90234803990e3562d6e3c522fed721a25e7baef /src/app/browser.js | |
parent | 451f1709cbdf0caa20c01ec533b96832ba9aa822 (diff) | |
download | Viper-1c06ab53f1cf2228e1034a66538f3a31a14e3743.tar.gz Viper-1c06ab53f1cf2228e1034a66538f3a31a14e3743.zip |
refactored event names
Quite a lot of them aren't in the same syntax/style, and it's quite bad
to look at, this should fix them all without causing issues.
Diffstat (limited to 'src/app/browser.js')
-rw-r--r-- | src/app/browser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index 72ab24e..4b9f2e3 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -373,7 +373,7 @@ function BrowserEl(properties) { browserEntries.appendChild(entry); } -ipcRenderer.on("removedmod", (event, mod) => { +ipcRenderer.on("removed-mod", (event, mod) => { setButtons(true); Browser.setbutton(mod.name, lang("gui.browser.install")); if (mod.manifestname) { @@ -381,7 +381,7 @@ ipcRenderer.on("removedmod", (event, mod) => { } }) -ipcRenderer.on("failedmod", (event, modname) => { +ipcRenderer.on("failed-mod", (event, modname) => { setButtons(true); new Toast({ timeout: 10000, @@ -391,7 +391,7 @@ ipcRenderer.on("failedmod", (event, modname) => { }) }) -ipcRenderer.on("installedmod", (event, mod) => { +ipcRenderer.on("installed-mod", (event, mod) => { setButtons(true); Browser.setbutton(mod.name, lang("gui.browser.reinstall")); |