From afc9ceaa1f0a0b782b02083654c0f3a037cfa88f Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 17 Nov 2025 07:31:46 +0100 Subject: [PATCH] fix --- .../Ui/Models/UpdatesCollectorViewMode/ModUpdateInfo.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ModpackUpdater.Apps.Manager/Ui/Models/UpdatesCollectorViewMode/ModUpdateInfo.cs b/ModpackUpdater.Apps.Manager/Ui/Models/UpdatesCollectorViewMode/ModUpdateInfo.cs index c0a4816..99b70be 100644 --- a/ModpackUpdater.Apps.Manager/Ui/Models/UpdatesCollectorViewMode/ModUpdateInfo.cs +++ b/ModpackUpdater.Apps.Manager/Ui/Models/UpdatesCollectorViewMode/ModUpdateInfo.cs @@ -1,12 +1,17 @@ +using System.ComponentModel; + namespace ModpackUpdater.Apps.Manager.Ui.Models.UpdatesCollectorViewMode; -public record ModUpdateInfo(KeyValuePair[] AvailableVersions, InstallAction Origin) +public record ModUpdateInfo(KeyValuePair[] AvailableVersions, InstallAction Origin) : INotifyPropertyChanged { + public event PropertyChangedEventHandler? PropertyChanged; + public int NewVersion { get; set; } public bool Visible { get; set; } = true; + public IEnumerable DisplayVersions { get; } = AvailableVersions.Select(n => { - if (string.IsNullOrWhiteSpace(n.Value) || n.Value == n.Key) + if (string.IsNullOrWhiteSpace(n.Value) || n.Value.Equals(n.Key, StringComparison.InvariantCulture)) return n.Key; return $"{n.Value} ({n.Value})"; });