fix: overlay窗口closable:false导致close()被忽略, 改用destroy()强制销毁

This commit is contained in:
yu 2026-11-03 14:05:29 +08:00
parent b6829cbaab
commit 4a3e6e38c7

View File

@ -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()) {