mirror of
https://github.com/zadam/trilium.git
synced 2025-03-12 15:56:26 +08:00
change order of execution to mitigate race conditions
This commit is contained in:
parent
7d877d0fef
commit
3b98428c8c
1 changed files with 3 additions and 3 deletions
|
@ -162,9 +162,6 @@ class TabContext {
|
||||||
this.noteChangeDisabled = false;
|
this.noteChangeDisabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// after loading new note make sure editor is scrolled to the top
|
|
||||||
this.getComponent().scrollToTop();
|
|
||||||
|
|
||||||
this.setTitleBar();
|
this.setTitleBar();
|
||||||
|
|
||||||
this.cleanup(); // esp. on windows autocomplete is not getting closed automatically
|
this.cleanup(); // esp. on windows autocomplete is not getting closed automatically
|
||||||
|
@ -186,6 +183,9 @@ class TabContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
bundleService.executeRelationBundles(this.note, 'runOnNoteView', this);
|
bundleService.executeRelationBundles(this.note, 'runOnNoteView', this);
|
||||||
|
|
||||||
|
// after loading new note make sure editor is scrolled to the top
|
||||||
|
this.getComponent().scrollToTop();
|
||||||
}
|
}
|
||||||
|
|
||||||
async show() {
|
async show() {
|
||||||
|
|
Loading…
Reference in a new issue