renamed closing commands

This commit is contained in:
zadam
2023-01-08 13:58:51 +01:00
parent 8a2a9b2ea6
commit 43c5163f66
2 changed files with 10 additions and 5 deletions

View File

@@ -477,13 +477,13 @@ export default class TabManager extends Component {
this.openAndActivateEmptyTab();
}
async removeAllTabsCommand() {
async closeAllTabsCommand() {
for (const ntxIdToRemove of this.mainNoteContexts.map(nc => nc.ntxId)) {
await this.removeNoteContext(ntxIdToRemove);
}
}
async removeAllTabsExceptForThisCommand({ntxId}) {
async closeOtherTabsCommand({ntxId}) {
for (const ntxIdToRemove of this.mainNoteContexts.map(nc => nc.ntxId)) {
if (ntxIdToRemove !== ntxId) {
await this.removeNoteContext(ntxIdToRemove);
@@ -491,6 +491,10 @@ export default class TabManager extends Component {
}
}
async closeTabCommand({ntxId}) {
await this.removeNoteContext(ntxId);
}
async moveTabToNewWindowCommand({ntxId}) {
const {notePath, hoistedNoteId} = this.getNoteContextById(ntxId);