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

Update dioxus_desktop::Config to also allow for asynchronous custom protocol handlers #2535

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

d3rpp
Copy link
Contributor

@d3rpp d3rpp commented Jun 17, 2024

This is a very simple PR, that is tested to work on my Fedora machine, although I'm unable to do any real testing on other OSs.

For some reason wry doesn't like using synchronous custom protocols, I'm sure you've experienced that since it appear's you're also using the asynchronous one, so I've added an extra config option that adds asynchronous ones.

this is gonna be a case of certified ISO 9000 - Works on my machine, as such I encourage others to test on their machines.

Also added a QoL fix that allows the passing of anything that implements ToString instead of a string, since it may be a safe assumption that most of the time, it'd be passed in as a string literal.

@d3rpp d3rpp changed the title Update dioxus_desktop::Config to also allow for asynchronouse custom protocol handlers Update dioxus_desktop::Config to also allow for asynchronous custom protocol handlers Jun 17, 2024
ffs me

ffs 2: elctric boogaloo

added documentation for asynchronous custom protocol handling
Copy link
Member

@jkelleyrtp jkelleyrtp left a comment

Choose a reason for hiding this comment

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

Looks good, thank you! Might end up playing with naming in 0.6 but otherwise solid.

@jkelleyrtp jkelleyrtp added enhancement New feature or request desktop Suggestions related to the desktop renderer backport PRs that should be back ported to the last release labels Jun 18, 2024
@jkelleyrtp jkelleyrtp merged commit 5e3bb4f into DioxusLabs:main Jun 18, 2024
9 of 10 checks passed
DogeDark pushed a commit to DogeDark/dioxus that referenced this pull request Jul 3, 2024
Added asynchronous custom protocol handling
@DogeDark DogeDark mentioned this pull request Jul 3, 2024
DogeDark pushed a commit to DogeDark/dioxus that referenced this pull request Jul 4, 2024
Added asynchronous custom protocol handling
@DogeDark DogeDark mentioned this pull request Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport PRs that should be back ported to the last release desktop Suggestions related to the desktop renderer enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants