mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 01:36:24 +01:00 
			
		
		
		
	only one update
This commit is contained in:
		| @@ -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}) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user