mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 19:40:48 +08:00
This commit is contained in:
parent
b3e1507447
commit
5a69b30883
@ -371,7 +371,12 @@ export class Wnd {
|
|||||||
/// #if !BROWSER
|
/// #if !BROWSER
|
||||||
if (!oldTab) { // 从主窗口拖拽到页签新窗口
|
if (!oldTab) { // 从主窗口拖拽到页签新窗口
|
||||||
JSONToCenter(app, tabData, this);
|
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_SEND_WINDOWS, {cmd: "closetab", data: tabData.id});
|
||||||
ipcRenderer.send(Constants.SIYUAN_CMD, "focus");
|
ipcRenderer.send(Constants.SIYUAN_CMD, "focus");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user