diff options
Diffstat (limited to 'src/components')
-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 |