mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
dont toggle panes note on the first load
This commit is contained in:
@@ -23,6 +23,8 @@ function togglePanes() {
|
||||
|
||||
$closeDetailButton.click(togglePanes);
|
||||
|
||||
let firstLoad = true;
|
||||
|
||||
async function showTree() {
|
||||
const tree = await treeService.loadTree();
|
||||
|
||||
@@ -39,7 +41,13 @@ async function showTree() {
|
||||
treeService.clearSelectedNodes();
|
||||
|
||||
treeService.setCurrentNotePathToHash(node);
|
||||
togglePanes();
|
||||
|
||||
if (!firstLoad) {
|
||||
togglePanes();
|
||||
}
|
||||
else {
|
||||
firstLoad = false;
|
||||
}
|
||||
|
||||
noteDetailService.switchToNote(noteId, true);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user