Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

fix(electron_context_menu): fix disabled search engine contex menu on readonly notes#1590

Merged
eliandoran merged 1 commit intodevelopfrom
fix_543
Apr 1, 2025
Merged

fix(electron_context_menu): fix disabled search engine contex menu on readonly notes#1590
eliandoran merged 1 commit intodevelopfrom
fix_543

Conversation

@pano9000
Copy link
Copy Markdown
Contributor

@pano9000 pano9000 commented Apr 1, 2025

Hi,

this PR aims to fixes bug described in TriliumNext/Trilium#5245 - it was caused by a wrong check in the "enabled" prop:
It was previously checking if canPaste - which in this context does not make sense.
Here it would only make sense to check for hasText, which is already done here

just need to do a quick build and test properly, before I mark this as ready - will happen later today.

fixes TriliumNext/Trilium#5245

@pano9000 pano9000 marked this pull request as ready for review April 1, 2025 17:27
@pano9000 pano9000 changed the title fix(electron_context_menu): fix disabled search engine button on readonly notes fix(electron_context_menu): fix disabled search engine contex menu on readonly notes Apr 1, 2025
@eliandoran eliandoran merged commit dd46ffa into develop Apr 1, 2025
5 of 6 checks passed
@eliandoran eliandoran deleted the fix_543 branch April 1, 2025 18:39
@eliandoran eliandoran added this to the v0.92.6 milestone Apr 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot search for selected text when in ReadOnly mode

3 participants