mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 04:16:17 +01:00 
			
		
		
		
	fixed double refresh of note detail
This commit is contained in:
		@@ -5,8 +5,6 @@ export default class TabAwareWidget extends BasicWidget {
 | 
			
		||||
    setTabContextEvent({tabContext}) {
 | 
			
		||||
        /** @var {TabContext} */
 | 
			
		||||
        this.tabContext = tabContext;
 | 
			
		||||
 | 
			
		||||
        this.noteSwitched();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    isTab(tabId) {
 | 
			
		||||
@@ -80,6 +78,13 @@ export default class TabAwareWidget extends BasicWidget {
 | 
			
		||||
        this.activeTabChanged();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // when note is both switched and activated, this should not produce double refresh
 | 
			
		||||
    tabNoteSwitchedAndActivatedEvent() {
 | 
			
		||||
        this.tabContext = appContext.tabManager.getActiveTabContext();
 | 
			
		||||
 | 
			
		||||
        this.refresh();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    treeCacheReloadedEvent() {
 | 
			
		||||
        this.refresh();
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user