🐛 fix: fix window close issue and release Window/Linux beta (#7780)

* fix window close issue

* try to fix win loading

* try to fix win build

* try to fix win build

* fix win build issue

* fix win build issue
This commit is contained in:
Arvin Xu
2025-05-10 20:15:41 +08:00
committed by GitHub
parent 294790bef7
commit 82c48b916f
5 changed files with 46 additions and 14 deletions

View File

@@ -47,7 +47,7 @@
"@types/set-cookie-parser": "^2.4.10",
"consola": "^3.1.0",
"cookie": "^1.0.2",
"electron": "^35.2.0",
"electron": "^36.2.0",
"electron-builder": "^26.0.12",
"electron-is": "^3.0.0",
"electron-log": "^5.3.3",

View File

@@ -161,6 +161,11 @@ export default class BrowserManager {
if (browser.webContents) this.webContentsMap.delete(browser.webContents);
});
browser.browserWindow.on('show', () => {
if (browser.webContents)
this.webContentsMap.set(browser.webContents, browser.identifier as AppBrowsersIdentifiers);
});
return browser;
}