fix - dock icon is hidden for any flow

This commit is contained in:
geekgeekrun
2024-02-23 08:40:12 +08:00
parent c4453ba605
commit 588e75f92d
3 changed files with 7 additions and 5 deletions
+5 -1
View File
@@ -15,7 +15,7 @@ import {
} from '../flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer'
import * as JSONStream from 'JSONStream'
import { DOWNLOAD_ERROR_EXIT_CODE } from '../flow/CHECK_AND_DOWNLOAD_DEPENDENCIES'
let mainWindow: BrowserWindow
let mainWindow: BrowserWindow = null
export function createMainWindow(): void {
// Create the browser window.
@@ -196,4 +196,8 @@ export function createMainWindow(): void {
activate: true
})
})
mainWindow!.once('closed', () => {
mainWindow = null
})
}