fix closing all tabs except current

This commit is contained in:
zadam 2020-02-25 12:32:21 +01:00
parent 41d1d83dc2
commit d821ea4095
2 changed files with 6 additions and 3 deletions

View file

@ -227,8 +227,8 @@ export default class TabManager extends Component {
if (this.tabContexts.length <= 1) {
this.openAndActivateEmptyTab();
}
else {
this.activateNextTabEvent();
else if (tabContextToRemove.isActive()) {
this.activateNextTabCommand();
}
this.children = this.children.filter(tc => tc.tabId !== tabId);

View file

@ -31,11 +31,14 @@ export default class EmptyTypeWidget extends TypeWidget {
});
noteAutocompleteService.showRecentNotes(this.$autoComplete);
this.$autoComplete.trigger('focus');
return this.$widget;
}
doRefresh(note) {
this.$autoComplete.trigger('focus');
}
getContent() {}
focus() {}