You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the awesome package. I was wondering how can I show the progress in the renderer process. I could not find the right syntax to send it via ipcMain. I would appreciate your help.
Regards,
Bardia
The text was updated successfully, but these errors were encountered:
Here's a quick snippet that should get you started:
Main
// Handle file downloads on the main thread. Events are emitted from the mainwindow renderer and then handled here.// Download progress is then passed back as a "downloadProgress" event to the mainWindow renderer.//ipcMain.on("download",async(event,url,{ directory =tempPath}={})=>{download(mainWindow,url,{directory: directory,onProgress: progress=>mainWindow.webContents.send("downloadProgress",progress)});});
Hi,
Thanks for the awesome package. I was wondering how can I show the progress in the renderer process. I could not find the right syntax to send it via ipcMain. I would appreciate your help.
Regards,
Bardia
The text was updated successfully, but these errors were encountered: