Added progress bar

This commit is contained in:
2022-06-24 23:25:20 +02:00
parent 1a22c55572
commit 3e98ff73f7
6 changed files with 122 additions and 9 deletions

View File

@@ -68,6 +68,9 @@ const createWindow = () => {
});
mainWindow.setMenu(null);
if (process.env.NODE_ENV === 'development') {
mainWindow.webContents.openDevTools();
}
remoteInitialize();
remoteEnable(mainWindow.webContents);
@@ -102,6 +105,10 @@ const createWindow = () => {
}
});
ipcMain.on('setProgress', (event, arg) => {
mainWindow.setProgressBar(parseFloat(arg));
});
mainWindow.on('close', () => {
mainWindow.webContents.send('closeApp');
});