mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
Fixed taskbar finishes before render
This commit is contained in:
@@ -118,7 +118,10 @@ const createWindow = () => {
|
||||
ipcMain.on('setProgress', (event, arg) => {
|
||||
const progress = parseFloat(arg);
|
||||
mainWindow.setProgressBar(progress);
|
||||
if(progress === 1 && !mainWindow.isFocused()) {
|
||||
});
|
||||
|
||||
ipcMain.on('renderFinished', () => {
|
||||
if(!mainWindow.isFocused()) {
|
||||
mainWindow.setOverlayIcon(finsishedIconPath as unknown as NativeImage, 'Rendering Complete');
|
||||
mainWindow.flashFrame(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user