diff options
author | 0neGal <mail@0negal.com> | 2022-08-17 18:25:52 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-08-17 18:25:52 +0200 |
commit | 1da94c96948511b3b69f82b502265735c0c005e4 (patch) | |
tree | c4dd8d040a5e86cc18fbee4cc31c513f5f8666ac /src/app/browser.js | |
parent | 19e3f0d2d44087036712dccf1b2b0b81b9df759a (diff) | |
parent | 5106d9ed409a3cc91a7755f961fab1bf91d8b7fb (diff) | |
download | Viper-1da94c96948511b3b69f82b502265735c0c005e4.tar.gz Viper-1da94c96948511b3b69f82b502265735c0c005e4.zip |
Merge branch 'main' of https://github.com/0neGal/viper
Diffstat (limited to 'src/app/browser.js')
-rw-r--r-- | src/app/browser.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/browser.js b/src/app/browser.js index 4b9f2e3..db68d31 100644 --- a/src/app/browser.js +++ b/src/app/browser.js @@ -391,6 +391,16 @@ ipcRenderer.on("failed-mod", (event, modname) => { }) }) +ipcRenderer.on("no-internet", (event, modname) => { + 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")); |