@@ -78,9 +78,12 @@ function getSrcNodePath() {
7878}
7979
8080// In-memory key-value store shared across all windows (mirrors Tauri's put_item/get_all_items)
81- // Used for multi-window storage synchronization
81+ // Used for multi-window storage synchronization - ONLY for use by storage.js
8282const sharedStorageMap = new Map ( ) ;
8383
84+ // Update scheduled flag - shared across all windows for app updater
85+ let updateScheduled = false ;
86+
8487// Hidden metrics window for Google Analytics
8588let metricsWindow = null ;
8689
@@ -248,20 +251,15 @@ ipcMain.handle('get-executable-path', (event) => {
248251 return process . execPath ;
249252} ) ;
250253
251- // Run a shell command for update script execution
252- ipcMain . handle ( 'run-shell-command ' , async ( event , command ) => {
254+ // Update scheduled state - shared across windows for multi-window update persistence
255+ ipcMain . handle ( 'set-update-scheduled ' , ( event , scheduled ) => {
253256 assertTrusted ( event ) ;
254- const { exec } = require ( 'child_process' ) ;
255- return new Promise ( ( resolve ) => {
256- exec ( command , { shell : '/bin/bash' } , ( error , stdout , stderr ) => {
257- if ( error ) {
258- console . error ( 'Shell command error:' , error ) ;
259- resolve ( { code : error . code || 1 , stdout, stderr } ) ;
260- } else {
261- resolve ( { code : 0 , stdout, stderr } ) ;
262- }
263- } ) ;
264- } ) ;
257+ updateScheduled = scheduled ;
258+ } ) ;
259+
260+ ipcMain . handle ( 'get-update-scheduled' , ( event ) => {
261+ assertTrusted ( event ) ;
262+ return updateScheduled ;
265263} ) ;
266264
267265// Handle quit request from renderer
0 commit comments