mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🚨
This commit is contained in:
parent
8f59465ca6
commit
553891defb
17 changed files with 46 additions and 46 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue