Skip to content

Conversation

@jjw24
Copy link
Member

@jjw24 jjw24 commented Jan 31, 2022

Fix incorrect logic added in #968 where application URIs opened from WebSearch plugin are not be triggered

@jjw24 jjw24 added the bug Something isn't working label Jan 31, 2022
@jjw24 jjw24 self-assigned this Jan 31, 2022
@jjw24 jjw24 enabled auto-merge January 31, 2022 10:40
Copy link
Member

@JohnTheGr8 JohnTheGr8 left a comment

Choose a reason for hiding this comment

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

This seems to have been done in a bit of a rush 😆 Can we refactor to make it look a bit nicer?

I think we can:

  1. move the Process.Start call from OpenAppUri to the private OpenUri and have everything in one place, and call OpenUri from OpenAppUri (similar to OpenUrl)
  2. use an else statement in OpenUri and remove those early returns

Also, as mentioned before, I think it's a good idea to add an overload for OpenAppUri (maybe also for OpenUrl) that accepts a Uri instead of a string. I think plugins that use this method might already have a Uri before calling it, so why create a new one in OpenUri...

@jjw24
Copy link
Member Author

jjw24 commented Feb 3, 2022

done, please review @JohnTheGr8 @taooceros

@jjw24 jjw24 requested a review from JohnTheGr8 February 3, 2022 21:28
@taooceros taooceros added this to the 1.9.4 milestone Mar 1, 2022
@jjw24 jjw24 requested review from Garulf, JohnTheGr8 and taooceros and removed request for Garulf, JohnTheGr8 and taooceros March 1, 2022 20:28
@jjw24 jjw24 merged commit 813d900 into dev Mar 1, 2022
@jjw24 jjw24 deleted the fix_app_uri_logic branch March 1, 2022 23:19
@jjw24 jjw24 modified the milestones: 1.9.3, 1.10.0 Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants