Equicord Tray: Update Repair
This commit is contained in:
parent
00c1ec5b86
commit
763a1e045f
1 changed files with 2 additions and 4 deletions
|
|
@ -193,10 +193,8 @@ function initTrayIpc() {
|
|||
|
||||
VencordNative.tray.onRepair(async () => {
|
||||
try {
|
||||
const res = await VencordNative.updater.rebuild();
|
||||
if (!res.ok) throw res.error;
|
||||
|
||||
showNotice("Equicord has been repaired!", "Restart", relaunch);
|
||||
await update();
|
||||
relaunch();
|
||||
} catch (err) {
|
||||
UpdateLogger.error("Failed to repair Equicord", err);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue