Skip to content

Commit bb81660

Browse files
authored
Merge pull request #87 from VariableThe/refactor/replace-expr-eval
fix: remove duplicate update-ready toast listener
2 parents cce86ed + 9c76b43 commit bb81660

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ function App() {
7777
}
7878
})
7979

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-
9180
useTimerStore.getState().cleanExpiredTimers()
9281

9382
let unlistenTimer: (() => void) | undefined
@@ -107,7 +96,6 @@ function App() {
10796
return () => {
10897
isUnmounted = true
10998
disposeUpdateStatus()
110-
disposeUpdateReady()
11199
unlistenTimer?.()
112100
}
113101
}, [])

0 commit comments

Comments
 (0)