Add a loading toast when update download begins

This commit is contained in:
Frank Noirot
2024-09-26 10:34:33 -04:00
parent 579151a9bb
commit 53314dd387
5 changed files with 36 additions and 2 deletions

3
interface.d.ts vendored
View File

@ -63,6 +63,9 @@ export interface IElectronAPI {
kittycad: (access: string, args: any) => any
listMachines: () => Promise<MachinesListing>
getMachineApiIp: () => Promise<string | null>
onUpdateDownloadStart: (
callback: (value: { version: string }) => void
) => Electron.IpcRenderer
onUpdateDownloaded: (
callback: (value: string) => void
) => Electron.IpcRenderer