Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix closing all tabs except current
zadamd821ea4095e0
diff --git a/src/public/javascripts/services/tab_manager.js b/src/public/javascripts/services/tab_manager.jsindex 16b921cc25..3049429fef 100644--- a/src/public/javascripts/services/tab_manager.js+++ b/src/public/javascripts/services/tab_manager.js@@ -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);diff --git a/src/public/javascripts/widgets/type_widgets/empty.js b/src/public/javascripts/widgets/type_widgets/empty.jsindex b166b0527b..e6df0effa7 100644--- a/src/public/javascripts/widgets/type_widgets/empty.js+++ b/src/public/javascripts/widgets/type_widgets/empty.js@@ -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() {}