mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
only one update
This commit is contained in:
parent
8513e0201c
commit
62da383623
@ -111,6 +111,12 @@ export default class NoteDetailWidget extends TabAwareWidget {
|
||||
|
||||
await typeWidget.handleEvent('setTabContext', {tabContext: this.tabContext});
|
||||
|
||||
// this is happening in update() so note has been already set and we need to reflect this
|
||||
await typeWidget.handleEvent('tabNoteSwitched', {
|
||||
tabContext: this.tabContext,
|
||||
notePath: this.tabContext.notePath
|
||||
});
|
||||
|
||||
this.child(typeWidget);
|
||||
}
|
||||
|
||||
|
@ -80,8 +80,6 @@ export default class TabAwareWidget extends BasicWidget {
|
||||
setTabContextEvent({tabContext}) {
|
||||
/** @var {TabContext} */
|
||||
this.tabContext = tabContext;
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
async noteTypeMimeChangedEvent({noteId}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user