Skip to content

Commit

Permalink
Navigation Crash - iOS #236 + Error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
OudomMunint committed Aug 4, 2024
1 parent dfe9e5a commit 7ea89d1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Views/Welcome.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ public ObservableCollection<UserInformation> UserCollection

private void Continue_Clicked(object sender, EventArgs e)
{
Navigation.PushAsync(new Dashboard());

// Prevent the user from going back
Navigation.RemovePage(this);
try {
Navigation.PushAsync(new Dashboard());
// Prevent the user from going back
//Navigation.RemovePage(this); // Disabled for now due to #236
}
catch (Exception ex)
{
DisplayAlert("Error", ex.Message, "OK");
}
}

private void OnPositionChanged(object sender, PositionChangedEventArgs e)
Expand Down

0 comments on commit 7ea89d1

Please sign in to comment.