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

Added CanShowDialog method to IPageDialogService #2591

Merged
merged 4 commits into from
Oct 15, 2021
Merged

Conversation

brianlagunas
Copy link
Member

Description of Change

If you try to show a dialog using the IPageDialogService too early in the applications life cycle, it's possible for the Application.MainPage to be null. This will cause a null exception to be thrown by the service.

By adding this new method call CanShowDialog, you can now use this as a safety check before showing any dialogs in the IPageDialogService

Bugs Fixed

API Changes

Added:

  • bool IPageDialogService.CanShowDialog();

Behavioral Changes

None

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard

Copy link
Member

@dansiegel dansiegel left a comment

Choose a reason for hiding this comment

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

looks like you missed checking in the implementation 😉

@brianlagunas brianlagunas merged commit 85e7b7b into master Oct 15, 2021
@brianlagunas brianlagunas deleted the issue-2570 branch October 15, 2021 20:59
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