From 6454d97173469a448b083d46f9892ef9d572b1cb Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 19 Nov 2025 07:30:56 +0100 Subject: [PATCH] ui(manager): add name column --- ModpackUpdater.Apps.Manager/Ui/MainWindow.axaml | 4 ++++ .../Ui/Models/MainWindow/MainWindowGridRow.cs | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ModpackUpdater.Apps.Manager/Ui/MainWindow.axaml b/ModpackUpdater.Apps.Manager/Ui/MainWindow.axaml index 74ea242..fd0c8e7 100644 --- a/ModpackUpdater.Apps.Manager/Ui/MainWindow.axaml +++ b/ModpackUpdater.Apps.Manager/Ui/MainWindow.axaml @@ -195,6 +195,10 @@ Header="{x:Static langRes:GeneralLangRes.Id}" Binding="{Binding InheritedId}"/> + + diff --git a/ModpackUpdater.Apps.Manager/Ui/Models/MainWindow/MainWindowGridRow.cs b/ModpackUpdater.Apps.Manager/Ui/Models/MainWindow/MainWindowGridRow.cs index c9397a8..2fcf583 100644 --- a/ModpackUpdater.Apps.Manager/Ui/Models/MainWindow/MainWindowGridRow.cs +++ b/ModpackUpdater.Apps.Manager/Ui/Models/MainWindow/MainWindowGridRow.cs @@ -23,14 +23,21 @@ public class MainWindowGridRow(InstallAction action, IActionSet baseActions) : I [DependsOn(nameof(Id), nameof(InheritFrom))] public string? InheritedId => action is UpdateAction ua && !string.IsNullOrWhiteSpace(ua.InheritFrom) ? ua.InheritFrom : action.Id; + [DependsOn(nameof(Side), nameof(InheritedId), nameof(Id))] public string InheritedSide => Sides[Inherited.Side]; + [DependsOn(nameof(UpdateType), nameof(InheritedId), nameof(Id))] public string InheritedUpdateType => action is UpdateAction ua ? UpdateActionTypes[ua.Type] : string.Empty; + [DependsOn(nameof(SourceType), nameof(InheritedId), nameof(Id))] public string InheritedSourceType => SourceTypes[Inherited.SourceType]; + [DependsOn(nameof(DestPath), nameof(InheritedId), nameof(Id))] public string? InheritedDestPath => Inherited.DestPath; + + [DependsOn(nameof(Name), nameof(InheritedId), nameof(Id))] + public string? InheritedName => Inherited.Name; public string? Id {