mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02: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) {
|
if (this.tabContexts.length <= 1) {
|
||||||
this.openAndActivateEmptyTab();
|
this.openAndActivateEmptyTab();
|
||||||
}
|
}
|
||||||
else {
|
else if (tabContextToRemove.isActive()) {
|
||||||
this.activateNextTabEvent();
|
this.activateNextTabCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.children = this.children.filter(tc => tc.tabId !== tabId);
|
this.children = this.children.filter(tc => tc.tabId !== tabId);
|
||||||
|
@ -31,11 +31,14 @@ export default class EmptyTypeWidget extends TypeWidget {
|
|||||||
});
|
});
|
||||||
|
|
||||||
noteAutocompleteService.showRecentNotes(this.$autoComplete);
|
noteAutocompleteService.showRecentNotes(this.$autoComplete);
|
||||||
this.$autoComplete.trigger('focus');
|
|
||||||
|
|
||||||
return this.$widget;
|
return this.$widget;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
doRefresh(note) {
|
||||||
|
this.$autoComplete.trigger('focus');
|
||||||
|
}
|
||||||
|
|
||||||
getContent() {}
|
getContent() {}
|
||||||
|
|
||||||
focus() {}
|
focus() {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user