mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix (empty tab): recent notes not showing when creating a empty tab
This commit is contained in:
		
							parent
							
								
									7dd517d8f7
								
							
						
					
					
						commit
						56019e5449
					
				@ -150,13 +150,13 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    handleEventInChildren<T extends EventNames>(name: T, data: EventData<T>): Promise<unknown[] | unknown> | null {
 | 
			
		||||
        // Avoid not showing recent notes when creating a new empty tab.
 | 
			
		||||
        if (name === 'activeContextChanged' && "noteContext" in data && data.noteContext.isEmpty()) {
 | 
			
		||||
        // Avoid events related to the current tab interfere with our popup.
 | 
			
		||||
        if (["noteSwitched", "noteSwitchedAndActivated", "exportAsPdf", "printActiveNote"].includes(name)) {
 | 
			
		||||
            return Promise.resolve();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Avoid events related to the current tab interfere with our popup.
 | 
			
		||||
        if (["noteSwitched", "noteSwitchedAndActivated", "exportAsPdf", "printActiveNote"].includes(name)) {
 | 
			
		||||
        // Avoid not showing recent notes when creating a new empty tab.
 | 
			
		||||
        if ("noteContext" in data && data.noteContext.ntxId !== "_popup-editor") {
 | 
			
		||||
            return Promise.resolve();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user