fix: overlay窗口closable:false导致close()被忽略, 改用destroy()强制销毁
This commit is contained in:
parent
b6829cbaab
commit
4a3e6e38c7
@ -127,7 +127,7 @@ export function updateOverlayProgress(ratio: number): void {
|
||||
|
||||
export function hideRunOverlay(mainWindow: BrowserWindow | null): void {
|
||||
if (overlayWindow && !overlayWindow.isDestroyed()) {
|
||||
overlayWindow.close();
|
||||
overlayWindow.destroy();
|
||||
overlayWindow = null;
|
||||
}
|
||||
if (mainWindow && !mainWindow.isDestroyed()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user