mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	fix(touchbar): errors refreshing touchbar if parent is missing
This commit is contained in:
		
							parent
							
								
									d734ac9e45
								
							
						
					
					
						commit
						d6478c2fed
					
				@ -65,8 +65,10 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        this.show();
 | 
					        this.show();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (this.parent) {
 | 
				
			||||||
            this.triggerCommand("refreshTouchBar");
 | 
					            this.triggerCommand("refreshTouchBar");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    getData() {
 | 
					    getData() {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user