aboutsummaryrefslogtreecommitdiff
path: root/src/app/browser.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/browser.js')
-rw-r--r--src/app/browser.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index 4b9f2e3..b1576a9 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -391,6 +391,17 @@ ipcRenderer.on("failed-mod", (event, modname) => {
})
})
+ipcRenderer.on("no-internet", (event, modname) => {
+ console.log('yo')
+ setButtons(true);
+ new Toast({
+ timeout: 10000,
+ scheme: "error",
+ title: lang("gui.toast.noInternet.title"),
+ description: lang("gui.toast.noInternet.desc")
+ })
+})
+
ipcRenderer.on("installed-mod", (event, mod) => {
setButtons(true);
Browser.setbutton(mod.name, lang("gui.browser.reinstall"));