Fixed a typo

This commit is contained in:
Markus Ewald 2026-04-28 12:14:22 +02:00
commit 1cee865b7e
3 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ namespace Nuclex.Avalonia.CommonDialogs {
/// A task that will provide the pre-opened file for readiong or null if
/// the user has canceled the file picker dialog
/// </returns>
public async Task<IStorageFile?> AskForFileToOpeAsync(
public async Task<IStorageFile?> AskForFileToOpenAsync(
string caption, params FilePickerFileType[] fileTypes
) {
var options = new FilePickerOpenOptions() {

View file

@ -54,7 +54,7 @@ namespace Nuclex.Avalonia.CommonDialogs {
/// A task that will provide the pre-opened file for readiong or null if
/// the user has canceled the file picker dialog
/// </returns>
Task<IStorageFile?> AskForFileToOpeAsync(
Task<IStorageFile?> AskForFileToOpenAsync(
string caption, params FilePickerFileType[] fileTypes
);

View file

@ -103,7 +103,7 @@ namespace Nuclex.Avalonia.ViewModels {
/// <param name="newPage">New page to switch to</param>
/// <returns>A task that will finish when the new page has been switched to</returns>
private Task switchPageAsync(TPageEnumeration newPage) {
if(Comparer.Default.Compare(this.activePage, newPage) == 0) {
if(newPage.Equals(this.activePage)) {
return Task.CompletedTask;
}