This commit is contained in:
Vanessa 2024-12-09 10:20:40 +08:00
parent 8f59465ca6
commit 553891defb
17 changed files with 46 additions and 46 deletions

View file

@ -1109,7 +1109,7 @@ app.whenReady().then(() => {
if (index === 0) {
globalShortcut.register(shortcut, () => {
let currentWorkspace;
const currentWebContentsId = (latestActiveWindow && !latestActiveWindow.isDestroyed()) ? latestActiveWindow.webContents.id : undefined
const currentWebContentsId = (latestActiveWindow && !latestActiveWindow.isDestroyed()) ? latestActiveWindow.webContents.id : undefined;
workspaces.find(workspaceItem => {
if ((currentWebContentsId || event.sender.id) === workspaceItem.browserWindow.webContents.id) {
currentWorkspace = workspaceItem;