mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
ec5842bb53
commit
34659973c1
1 changed files with 13 additions and 2 deletions
|
|
@ -274,11 +274,22 @@ export const globalCommand = (command: string, app: App) => {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
const tab = getActiveTab(false);
|
||||
|
||||
const tab = getActiveTab();
|
||||
if (tab) {
|
||||
tab.parent.removeTab(tab.id);
|
||||
return true;
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/14729
|
||||
if (window.siyuan.blockPanels.length > 0) {
|
||||
window.siyuan.blockPanels[window.siyuan.blockPanels.length - 1]?.destroy();
|
||||
return true;
|
||||
}
|
||||
const noFocusTab = getActiveTab(false);
|
||||
if (noFocusTab) {
|
||||
noFocusTab.parent.removeTab(noFocusTab.id);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (command === "closeOthers" || command === "closeAll") {
|
||||
const tab = getActiveTab(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue