Skip to content

Commit 76863e1

Browse files
authored
chore: remove migration for skip quit flag (#1725)
1 parent caaaff5 commit 76863e1

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

renderer/src/renderer.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,6 @@ if (!window.electronAPI || !window.electronAPI.getToolhivePort) {
3232
;(async () => {
3333
await configureClient()
3434

35-
// One-time migration: sync the old localStorage quit-confirmation
36-
// preference into the main-process electron-store so existing users
37-
// who already chose "Don't ask me again" keep that setting.
38-
// Wrapped in its own try/catch because this is best-effort — a failed
39-
// IPC call should not prevent the renderer from booting.
40-
try {
41-
const legacyKey = 'doNotShowAgain_confirm_quit'
42-
if (localStorage.getItem(legacyKey) === 'true') {
43-
await window.electronAPI.setSkipQuitConfirmation(true)
44-
localStorage.removeItem(legacyKey)
45-
log.info(
46-
'Migrated quit-confirmation preference from localStorage to main process store'
47-
)
48-
}
49-
} catch (e) {
50-
log.error('Failed to migrate quit-confirmation preference', e)
51-
}
52-
5335
const hashHistory = createHashHistory()
5436
const router = createRouter({
5537
routeTree,

0 commit comments

Comments
 (0)