aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/Updater.tsx2
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(),