Skip to content

Commit

Permalink
Fix save load dialog (disable backdrop click)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Mar 17, 2024
1 parent c21fc6c commit 0080c7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Pkmds.Web/Layout/MainLayout.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ private Task OnSystemPreferenceChanged(bool newValue)

private async Task ShowLoadSaveFileDialogAsync()
{
var dialog = await DialogService.ShowAsync<FileUploadDialog>();
var dialog = await DialogService.ShowAsync<FileUploadDialog>("Load Save File", options: new DialogOptions
{
CloseOnEscapeKey = true,
DisableBackdropClick = true
});

var result = await dialog.Result;
if (result is { Data: IBrowserFile selectedFile })
{
Expand Down

0 comments on commit 0080c7a

Please sign in to comment.