Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer to copy non-HTTP links to the clipboard instead of trying to open them in webxdc source code link and inside of html emails. #3395

Merged

Conversation

Simon-Laux
Copy link
Member

@Simon-Laux Simon-Laux commented Sep 12, 2023

  • test it

…en them in webxdc source code link and inside of html emails.
url.startsWith('https:') ||
url.startsWith('mailto:')
) {
shell.openExternal(url)
Copy link
Member

@r10s r10s Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compared to #3388, in the bubbles, mailto: links are passed to processOpenQrUrl(link) instead of shell.openExternal() - is that difference on purpose?

in general, bubble-view and full-message-view should behave quite similar from the user perspective - a link may fit randomly to a bubble or not, but they should act the same (it is a pity that we cannot use the same dialogs in both szenarios, btw)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a duplicated artefact that comes from copy pasting see 2 lines above. also processOpenQrUrl exist only in the frontend, so the open_url function is for forwarding the request to the frontend.

@Simon-Laux Simon-Laux merged commit bde5536 into master Sep 14, 2023
1 of 5 checks passed
@Simon-Laux Simon-Laux deleted the simon/copy-other-uri-schemes-when-opening-from-other-sources branch September 14, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants