Skip to content

Commit

Permalink
fixed DialogService DisplayConfirmationAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
APBell committed Aug 30, 2024
1 parent ca3b109 commit b0c20e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Blauhaus.MVVM.Maui/Services/MauiDialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ public async Task<bool> DisplayConfirmationAsync(string title, string message, s
if (Application.Current is null) throw new InvalidOperationException("Current application is null");
if (Application.Current.MainPage is null) throw new InvalidOperationException("Current main application page is null");

await Application.Current.MainPage.DisplayAlert(title, message, acceptButtonText, cancelButtonText);
return true;

return await Application.Current.MainPage.DisplayAlert(title, message, acceptButtonText, cancelButtonText);
}

public async Task<string> DisplayActionSheetAsync(string title, string cancel, string destruction, params string[] buttons)
Expand Down

0 comments on commit b0c20e9

Please sign in to comment.