mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 13:08:06 +01:00
This commit is contained in:
parent
b3e1507447
commit
5a69b30883
1 changed files with 6 additions and 1 deletions
|
|
@ -371,7 +371,12 @@ export class Wnd {
|
|||
/// #if !BROWSER
|
||||
if (!oldTab) { // 从主窗口拖拽到页签新窗口
|
||||
JSONToCenter(app, tabData, this);
|
||||
oldTab = this.children[this.children.length - 1];
|
||||
this.children.find(item => {
|
||||
if (item.headElement.getAttribute("data-activeTime") === tabData.activeTime) {
|
||||
oldTab = item;
|
||||
return true;
|
||||
}
|
||||
});
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "closetab", data: tabData.id});
|
||||
ipcRenderer.send(Constants.SIYUAN_CMD, "focus");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue