Auto-Updater: Doppelstart verhindern + Download-Status sichtbar
- State-Tracking im Main-Prozess (idle/checking/downloading/ready) - Manueller Check gibt aktuellen Status zurück statt Squirrel-Doppelstart - Auto-Check nur wenn idle (kein Konflikt mit laufendem Download) - Frontend synchronisiert Status beim Mount und Modal-Öffnen - getUpdateStatus IPC für synchrone Status-Abfrage Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2c6ac0745d
commit
d909909591
3 changed files with 61 additions and 13 deletions
|
|
@ -9,6 +9,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||
onUpdateNotAvailable: (callback) => ipcRenderer.on('update-not-available', callback),
|
||||
onUpdateError: (callback) => ipcRenderer.on('update-error', (_e, msg) => callback(msg)),
|
||||
checkForUpdates: () => ipcRenderer.send('check-for-updates'),
|
||||
getUpdateStatus: () => ipcRenderer.sendSync('get-update-status'),
|
||||
installUpdate: () => ipcRenderer.send('install-update'),
|
||||
setStreaming: (active) => ipcRenderer.send('streaming-status', active),
|
||||
showNotification: (title, body) => ipcRenderer.send('show-notification', title, body),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue