From 57d586fab73814a3778303c7a78c55c785e62af0 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 1 Oct 2022 22:14:57 +0200 Subject: [PATCH] Updater: Properly clear changelist after update --- src/components/Updater.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Updater.tsx b/src/components/Updater.tsx index 3d760f9e..947ce436 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(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(),