mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 18:36:30 +01:00
more refactoring ...
This commit is contained in:
@@ -23,7 +23,9 @@ class AppContext {
|
||||
const $leftPane = $("#left-pane");
|
||||
|
||||
this.tabRow = new TabRowWidget(this);
|
||||
$("#tab-row-container").append(this.tabRow.render());
|
||||
const contents = this.tabRow.render();
|
||||
|
||||
$("#global-menu-wrapper").after(contents);
|
||||
|
||||
this.noteTreeWidget = new NoteTreeWidget(this);
|
||||
|
||||
@@ -234,6 +236,10 @@ class AppContext {
|
||||
this.tabsChangedTaskId = setTimeout(() => this.saveOpenTabs(), 1000);
|
||||
}
|
||||
|
||||
async activateTab(tabContext) {
|
||||
return this.tabRow.activateTab(tabContext.$tab[0]);
|
||||
}
|
||||
|
||||
newTabListener() {
|
||||
this.openEmptyTab();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user