2 parents cce86ed + 9c76b43 commit bb81660Copy full SHA for bb81660
1 file changed
src/App.tsx
@@ -77,17 +77,6 @@ function App() {
77
}
78
})
79
80
- const disposeUpdateReady = window.electronAPI.onUpdateReady(() => {
81
- useAppStore.getState().addToast({
82
- message: '✨ A new update is ready to install.',
83
- type: 'info',
84
- actionLabel: 'Restart Now',
85
- onAction: () => {
86
- window.electronAPI.restartApp()
87
- },
88
- })
89
90
-
91
useTimerStore.getState().cleanExpiredTimers()
92
93
let unlistenTimer: (() => void) | undefined
@@ -107,7 +96,6 @@ function App() {
107
96
return () => {
108
97
isUnmounted = true
109
98
disposeUpdateStatus()
110
- disposeUpdateReady()
111
99
unlistenTimer?.()
112
100
113
101
}, [])
0 commit comments