mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(electron_context_menu): fix disabled search engine context menu on readonly notes
fixes #543
This commit is contained in:
		
				
					committed by
					
						 Panagiotis Papadopoulos
						Panagiotis Papadopoulos
					
				
			
			
				
	
			
			
			
						parent
						
							a715de6472
						
					
				
				
					commit
					a6206d2bd6
				
			| @@ -115,7 +115,6 @@ function setupContextMenu() { | |||||||
|             items.push({ title: "----" }); |             items.push({ title: "----" }); | ||||||
|  |  | ||||||
|             items.push({ |             items.push({ | ||||||
|                 enabled: editFlags.canPaste, |  | ||||||
|                 title: t("electron_context_menu.search_online", { term: shortenedSelection, searchEngine: searchEngineName }), |                 title: t("electron_context_menu.search_online", { term: shortenedSelection, searchEngine: searchEngineName }), | ||||||
|                 uiIcon: "bx bx-search-alt", |                 uiIcon: "bx bx-search-alt", | ||||||
|                 handler: () => electron.shell.openExternal(searchUrl) |                 handler: () => electron.shell.openExternal(searchUrl) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user