From 9c76b43484090332d3e13e923733c280421659d2 Mon Sep 17 00:00:00 2001 From: Aditya Date: Mon, 29 Jun 2026 21:15:17 +0530 Subject: [PATCH] fix: remove duplicate update-ready toast listener --- src/App.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index dabe65d..79e70b3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -77,17 +77,6 @@ function App() { } }) - const disposeUpdateReady = window.electronAPI.onUpdateReady(() => { - useAppStore.getState().addToast({ - message: '✨ A new update is ready to install.', - type: 'info', - actionLabel: 'Restart Now', - onAction: () => { - window.electronAPI.restartApp() - }, - }) - }) - useTimerStore.getState().cleanExpiredTimers() let unlistenTimer: (() => void) | undefined @@ -107,7 +96,6 @@ function App() { return () => { isUnmounted = true disposeUpdateStatus() - disposeUpdateReady() unlistenTimer?.() } }, [])