fix(electron): whitescreen issue (#7742)

1. non-blurred mode whitescreen issue
2. should not close tab with cmd+w for pinned tabs
This commit is contained in:
pengx17
2024-08-05 14:09:22 +00:00
parent 0d7de67e01
commit a03831f2a2
2 changed files with 5 additions and 1 deletions

View File

@@ -316,7 +316,7 @@ export class WebContentViewsManager {
};
closeTab = async (id?: string) => {
if (!id) {
if (!id && !this.activeWorkbenchMeta?.pinned) {
id = this.activeWorkbenchId;
}