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

@ -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;
}