Skip to content

Commit

Permalink
Fix OpenFolderDialog thread error
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Jul 8, 2024
1 parent 974426d commit 4558124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HUDMerger/Services/FolderPickerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ public FolderPickerService(ISettingsService settingsService)
};
}

public async Task<string?> PickFolderAsync()
public Task<string?> PickFolderAsync()
{
return await Task.Run(() =>
return Task.FromResult(
OpenFolderDialog.ShowDialog(Application.Current.MainWindow) == true
? OpenFolderDialog.FolderName
: null
Expand Down

0 comments on commit 4558124

Please sign in to comment.