mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 16:26:09 +01:00
🐛 tag
This commit is contained in:
parent
76c67daaf4
commit
a7c617dac4
1 changed files with 2 additions and 2 deletions
|
|
@ -40,10 +40,10 @@ const closeMenu = (tab: Tab) => {
|
|||
if (allTabs.length > 1) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
label: window.siyuan.languages.closeOthers,
|
||||
click: async () => {
|
||||
click() {
|
||||
for (let index = 0; index < allTabs.length; index++) {
|
||||
if (allTabs[index].id !== tab.id && !allTabs[index].headElement.classList.contains("item--pin")) {
|
||||
await allTabs[index].parent.removeTab(allTabs[index].id, true);
|
||||
allTabs[index].parent.removeTab(allTabs[index].id, true, true, false);
|
||||
}
|
||||
}
|
||||
if (!tab.headElement.parentElement.querySelector(".item--focus")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue