mirror of
https://github.com/zadam/trilium.git
synced 2024-09-23 00:56:00 +08:00
fix closing all tabs except current
This commit is contained in:
parent
41d1d83dc2
commit
d821ea4095
|
@ -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);
|
||||
|
|
|
@ -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() {}
|
||||
|
|
Loading…
Reference in a new issue