File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments