diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-01 22:14:57 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-01 22:14:57 +0200 |
commit | 57d586fab73814a3778303c7a78c55c785e62af0 (patch) | |
tree | 2c177b423f41a9dbdb5d029d0bdbb9997b60471e /src/components | |
parent | 2410582cf8f607990ce9e9b6b92360bba98f6a57 (diff) | |
download | Vencord-57d586fab73814a3778303c7a78c55c785e62af0.tar.gz Vencord-57d586fab73814a3778303c7a78c55c785e62af0.tar.bz2 Vencord-57d586fab73814a3778303c7a78c55c785e62af0.zip |
Updater: Properly clear changelist after update
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Updater.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 3d760f9..947ce43 100644 --- a/src/components/Updater.tsx +++ b/src/components/Updater.tsx @@ -93,6 +93,7 @@ export default ErrorBoundary.wrap(function Updater() { disabled={isUpdating || isChecking} onClick={withDispatcher(setIsUpdating, async () => { if (await update()) { + setUpdates([]); const needFullRestart = await rebuild(); await new Promise<void>(r => { Alerts.show({ @@ -123,6 +124,7 @@ export default ErrorBoundary.wrap(function Updater() { if (outdated) { setUpdates(changes); } else { + setUpdates([]); Toasts.show({ message: "No updates found!", id: Toasts.genId(), |