aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/browser.js29
-rw-r--r--src/app/main.css2
2 files changed, 28 insertions, 3 deletions
diff --git a/src/app/browser.js b/src/app/browser.js
index e1f37e5..ded12fa 100644
--- a/src/app/browser.js
+++ b/src/app/browser.js
@@ -198,9 +198,34 @@ ipcRenderer.on("removedmod", (event, mod) => {
}
})
-ipcRenderer.on("installedmod", (event, modname) => {
+ipcRenderer.on("failedmod", (event, modname) => {
setButtons(true);
- Browser.setbutton(modname, lang("gui.browser.reinstall"));
+ new Toast({
+ timeout: 10000,
+ scheme: "error",
+ title: lang("gui.toast.title.failed"),
+ description: lang("gui.toast.desc.failed")
+ })
+})
+
+ipcRenderer.on("installedmod", (event, mod) => {
+ setButtons(true);
+ Browser.setbutton(mod.name, lang("gui.browser.reinstall"));
+
+ if (mod.malformed) {
+ new Toast({
+ timeout: 8000,
+ scheme: "warning",
+ title: lang("gui.toast.title.malformed"),
+ description: mod.name + " " + lang("gui.toast.desc.malformed")
+ })
+ }
+
+ new Toast({
+ scheme: "success",
+ title: lang("gui.toast.title.installed"),
+ description: mod.name + " " + lang("gui.toast.desc.installed")
+ })
})
function normalize(items) {
diff --git a/src/app/main.css b/src/app/main.css
index 14348bd..a532490 100644
--- a/src/app/main.css
+++ b/src/app/main.css
@@ -609,7 +609,7 @@ code {
.toast .description {
opacity: 0.8;
font-size: 0.8em;
- font-weight: 400;
+ font-weight: 600;
}
/* drag control */