mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
ac3b54a538
commit
8713734ba9
7 changed files with 19 additions and 33 deletions
|
|
@ -223,7 +223,7 @@ export class Wnd {
|
|||
if (wnd instanceof Wnd) {
|
||||
JSONToCenter(tabData, wnd);
|
||||
oldTab = wnd.children[wnd.children.length - 1];
|
||||
ipcRenderer.send(Constants.SIYUAN_CLOSETAB, tabData.id);
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "closetab", data: tabData.id});
|
||||
it.querySelector("li[data-clone='true']").remove();
|
||||
wnd.switchTab(oldTab.headElement);
|
||||
}
|
||||
|
|
@ -331,7 +331,7 @@ export class Wnd {
|
|||
if (!oldTab) { // 从主窗口拖拽到页签新窗口
|
||||
JSONToCenter(tabData, this);
|
||||
oldTab = this.children[this.children.length - 1];
|
||||
ipcRenderer.send(Constants.SIYUAN_CLOSETAB, tabData.id);
|
||||
ipcRenderer.send(Constants.SIYUAN_SEND_WINDOWS, {cmd: "closetab", data: tabData.id});
|
||||
}
|
||||
/// #endif
|
||||
if (!oldTab) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue