Add: Update-Modal mit Download-Fortschritt in Electron App
- Modal-Overlay statt Banner fuer Update-Benachrichtigung - 3 Zustaende: Downloading (Ladeanimation), Ready (OK-Button), Error - IPC-Events: update-available, update-ready, update-error
This commit is contained in:
parent
feeabe147c
commit
c2942737bd
4 changed files with 94 additions and 22 deletions
|
|
@ -5,6 +5,7 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||
version: '1.5.0',
|
||||
onUpdateAvailable: (callback) => ipcRenderer.on('update-available', callback),
|
||||
onUpdateReady: (callback) => ipcRenderer.on('update-ready', callback),
|
||||
onUpdateError: (callback) => ipcRenderer.on('update-error', (_e, msg) => callback(msg)),
|
||||
installUpdate: () => ipcRenderer.send('install-update'),
|
||||
setStreaming: (active) => ipcRenderer.send('streaming-status', active),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue