From 9acf06f71515d462923f4a6c69223de1d7590b8c Mon Sep 17 00:00:00 2001 From: erri120 Date: Thu, 10 Oct 2024 12:17:49 +0200 Subject: [PATCH] Use better default text --- .../Pages/LibraryPage/LocalFileParentLibraryItemModel.cs | 2 +- .../Pages/LibraryPage/NexusModsFileLibraryItemModel.cs | 2 +- .../Pages/LibraryPage/NexusModsModPageLibraryItemModel.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NexusMods.App.UI/Pages/LibraryPage/LocalFileParentLibraryItemModel.cs b/src/NexusMods.App.UI/Pages/LibraryPage/LocalFileParentLibraryItemModel.cs index ca5377d12..2823a12d7 100644 --- a/src/NexusMods.App.UI/Pages/LibraryPage/LocalFileParentLibraryItemModel.cs +++ b/src/NexusMods.App.UI/Pages/LibraryPage/LocalFileParentLibraryItemModel.cs @@ -88,7 +88,7 @@ public LocalFileParentLibraryItemModel(LocalFile.ReadOnly localFile) public ReactiveCommand InstallItemCommand { get; } public BindableReactiveProperty IsInstalled { get; } = new(); - public BindableReactiveProperty InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(numInstalled: 0, numTotal: 1, isExpanded: false)); + public BindableReactiveProperty InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false)); private bool _isDisposed; private readonly IDisposable _modelDisposable; diff --git a/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsFileLibraryItemModel.cs b/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsFileLibraryItemModel.cs index ac07efee0..71d4b4ea7 100644 --- a/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsFileLibraryItemModel.cs +++ b/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsFileLibraryItemModel.cs @@ -80,7 +80,7 @@ public NexusModsFileLibraryItemModel(NexusModsLibraryItem.ReadOnly nexusModsLibr public ReactiveCommand InstallItemCommand { get; } public BindableReactiveProperty IsInstalled { get; } = new(); - public BindableReactiveProperty InstallButtonText { get; } = new(value: "Install"); + public BindableReactiveProperty InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false)); private bool _isDisposed; private readonly IDisposable _modelDisposable; diff --git a/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsModPageLibraryItemModel.cs b/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsModPageLibraryItemModel.cs index 047f072af..66d8fb1c0 100644 --- a/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsModPageLibraryItemModel.cs +++ b/src/NexusMods.App.UI/Pages/LibraryPage/NexusModsModPageLibraryItemModel.cs @@ -115,7 +115,7 @@ public NexusModsModPageLibraryItemModel(IObservable InstallItemCommand { get; } public BindableReactiveProperty IsInstalled { get; } = new(); - public BindableReactiveProperty InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(numInstalled: 0, numTotal: 1, isExpanded: false)); + public BindableReactiveProperty InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false)); private bool _isDisposed; private readonly IDisposable _modelDisposable;