This commit is contained in:
Vanessa 2023-03-23 18:51:20 +08:00
parent a8127fce8d
commit 32af26c519
6 changed files with 20 additions and 21 deletions

View file

@ -61,10 +61,10 @@ const exitApp = (port, errorWindowId) => {
if (port.toString() === currentURL.port.toString()) {
const hasMain = workspaces.find((workspaceItem) => {
if (workspaceItem.browserWindow.id === item.id) {
mainWindow = item
mainWindow = item;
return true;
}
})
});
if (!hasMain) {
item.destroy();
}