From 1cee865b7e7e440388c02980789bcd09151e4452 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Tue, 28 Apr 2026 12:14:22 +0200 Subject: [PATCH] Fixed a typo --- Source/CommonDialogs/AvaloniaFileSelector.cs | 2 +- Source/CommonDialogs/IFilePickerService.cs | 2 +- Source/ViewModels/MultiPageViewModel.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/CommonDialogs/AvaloniaFileSelector.cs b/Source/CommonDialogs/AvaloniaFileSelector.cs index 539ed56..2d9712e 100644 --- a/Source/CommonDialogs/AvaloniaFileSelector.cs +++ b/Source/CommonDialogs/AvaloniaFileSelector.cs @@ -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 /// - public async Task AskForFileToOpeAsync( + public async Task AskForFileToOpenAsync( string caption, params FilePickerFileType[] fileTypes ) { var options = new FilePickerOpenOptions() { diff --git a/Source/CommonDialogs/IFilePickerService.cs b/Source/CommonDialogs/IFilePickerService.cs index ebc55c3..7156a34 100644 --- a/Source/CommonDialogs/IFilePickerService.cs +++ b/Source/CommonDialogs/IFilePickerService.cs @@ -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 /// - Task AskForFileToOpeAsync( + Task AskForFileToOpenAsync( string caption, params FilePickerFileType[] fileTypes ); diff --git a/Source/ViewModels/MultiPageViewModel.cs b/Source/ViewModels/MultiPageViewModel.cs index b46a12f..d556ee5 100644 --- a/Source/ViewModels/MultiPageViewModel.cs +++ b/Source/ViewModels/MultiPageViewModel.cs @@ -103,7 +103,7 @@ namespace Nuclex.Avalonia.ViewModels { /// New page to switch to /// A task that will finish when the new page has been switched to private Task switchPageAsync(TPageEnumeration newPage) { - if(Comparer.Default.Compare(this.activePage, newPage) == 0) { + if(newPage.Equals(this.activePage)) { return Task.CompletedTask; }