Fix: Stream-close-warning via IPC statt async executeJavaScript

- Renderer meldet Streaming-Status synchron per IPC
- main.js prueft Status synchron im close-Handler
- Kein async Race mehr, Dialog erscheint zuverlaessig
This commit is contained in:
Daniel 2026-03-07 14:14:51 +01:00
parent e2ae624690
commit 7bebb7db9a
3 changed files with 20 additions and 17 deletions

View file

@ -6,4 +6,5 @@ contextBridge.exposeInMainWorld('electronAPI', {
onUpdateAvailable: (callback) => ipcRenderer.on('update-available', callback),
onUpdateReady: (callback) => ipcRenderer.on('update-ready', callback),
installUpdate: () => ipcRenderer.send('install-update'),
setStreaming: (active) => ipcRenderer.send('streaming-status', active),
});