diff options
author | V <vendicated@riseup.net> | 2023-04-09 04:04:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 04:04:02 +0200 |
commit | 08822dd19064ea5b707117c5ed51f62dd0a8e316 (patch) | |
tree | 1020c2dad28f5dc502f797ca09066145fcc12109 /src/components/VencordSettings | |
parent | bfa20f2634a0f3f73a03135f9ddb9d0dfe566e88 (diff) | |
download | Vencord-08822dd19064ea5b707117c5ed51f62dd0a8e316.tar.gz Vencord-08822dd19064ea5b707117c5ed51f62dd0a8e316.tar.bz2 Vencord-08822dd19064ea5b707117c5ed51f62dd0a8e316.zip |
Improvements for VencordDesktop (#847)
Diffstat (limited to 'src/components/VencordSettings')
-rw-r--r-- | src/components/VencordSettings/Updater.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/VencordSettings/Updater.tsx b/src/components/VencordSettings/Updater.tsx index 809a3e7..6dffbc8 100644 --- a/src/components/VencordSettings/Updater.tsx +++ b/src/components/VencordSettings/Updater.tsx @@ -125,7 +125,7 @@ function Updatable(props: CommonProps) { onClick={withDispatcher(setIsUpdating, async () => { if (await update()) { setUpdates([]); - const needFullRestart = await rebuild(); + await rebuild(); await new Promise<void>(r => { Alerts.show({ title: "Update Success!", @@ -133,10 +133,7 @@ function Updatable(props: CommonProps) { confirmText: "Restart", cancelText: "Not now!", onConfirm() { - if (needFullRestart) - relaunch(); - else - location.reload(); + relaunch(); r(); }, onCancel: r |