Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void LoginButtonClicked(object sender, EventArgs e)

private void CancelButtonClicked(object sender, EventArgs e)
{
// Fire the OnCanceled event to let the calling code no the login was canceled.
// Fire the OnCanceled event to let the calling code know the login was canceled.
if (OnCanceled != null)
{
OnCanceled(this, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,17 @@ private async void LoginInfoEntered(object sender, LoginEventArgs e)
finally
{
// Dismiss the login controls.
if (Navigation.NavigationStack.OfType<LoginPage>().Any())
if (Shell.Current.Navigation.NavigationStack.OfType<LoginPage>().Any())
{
await Navigation.PopAsync();
_ = Shell.Current.Navigation.PopAsync();
}
}
}

private void LoginCanceled(object sender, EventArgs e)
{
// Dismiss the login controls.
Navigation.PopAsync();
_ = Shell.Current.Navigation.PopAsync();

// Cancel the task completion source task.
_loginTaskCompletionSrc.TrySetCanceled();
Expand Down
Loading