Update crash dialog

Closes #897
Fixes #1304 via compromise
This commit is contained in:
Zack Rauen 2022-06-25 03:13:36 -04:00
parent 2b9e657b8a
commit 6c5f9ee49b
1 changed files with 12 additions and 3 deletions

View File

@ -94,10 +94,19 @@ export default class BetterDiscord {
// If a previous crash was detected, show a message explaining why BD isn't there
electron.dialog.showMessageBox({
title: "BetterDiscord Crashed",
title: "Discord Crashed",
type: "warning",
message: "BetterDiscord seems to have crashed your Discord client.",
detail: "BetterDiscord has automatically disabled itself temporarily. Try removing all your plugins then restarting Discord."
message: "Something crashed your Discord Client",
detail: "BetterDiscord has automatically disabled itself just in case. To enable it again, restart Discord or click the button below.\n\nThis may have been caused by a plugin. Try moving all of your plugins outside the plugin folder and see if Discord still crashed.",
buttons: ["Try Again", "Open Plugins Folder", "Cancel"],
}).then((result)=>{
if (result.response === 0) {
electron.app.relaunch();
electron.app.exit();
}
if (result.response === 1) {
electron.shell.openPath(path.join(dataPath, "plugins"));
}
});
hasCrashed = false;
});