mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
Added progress bar
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user