mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
treecache now manages reloading when starting protected session
This commit is contained in:
@@ -20,7 +20,6 @@ import GlobalMenuWidget from "../widgets/global_menu.js";
|
||||
import RowFlexContainer from "../widgets/row_flex_container.js";
|
||||
import StandardTopWidget from "../widgets/standard_top_widget.js";
|
||||
import treeCache from "./tree_cache.js";
|
||||
import treeService from "./tree.js";
|
||||
import NotePathsWidget from "../widgets/note_paths.js";
|
||||
import RunScriptButtonsWidget from "../widgets/run_script_buttons.js";
|
||||
import ProtectedNoteSwitchWidget from "../widgets/protected_note_switch.js";
|
||||
@@ -392,6 +391,12 @@ class AppContext {
|
||||
removeAllTabsExceptForThis() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
async protectedSessionStartedListener() {
|
||||
await treeCache.loadInitialTree();
|
||||
|
||||
this.trigger('treeCacheReloaded');
|
||||
}
|
||||
}
|
||||
|
||||
const appContext = new AppContext();
|
||||
|
||||
Reference in New Issue
Block a user