Skip to content

Commit

Permalink
Use better default text
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Oct 10, 2024
1 parent e8f383b commit 9acf06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public LocalFileParentLibraryItemModel(LocalFile.ReadOnly localFile)

public ReactiveCommand<Unit, ILibraryItemModel> InstallItemCommand { get; }
public BindableReactiveProperty<bool> IsInstalled { get; } = new();
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(numInstalled: 0, numTotal: 1, isExpanded: false));
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false));

private bool _isDisposed;
private readonly IDisposable _modelDisposable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public NexusModsFileLibraryItemModel(NexusModsLibraryItem.ReadOnly nexusModsLibr

public ReactiveCommand<Unit, ILibraryItemModel> InstallItemCommand { get; }
public BindableReactiveProperty<bool> IsInstalled { get; } = new();
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: "Install");
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false));

private bool _isDisposed;
private readonly IDisposable _modelDisposable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public NexusModsModPageLibraryItemModel(IObservable<IChangeSet<NexusModsLibraryI

public ReactiveCommand<Unit, ILibraryItemModel> InstallItemCommand { get; }
public BindableReactiveProperty<bool> IsInstalled { get; } = new();
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(numInstalled: 0, numTotal: 1, isExpanded: false));
public BindableReactiveProperty<string> InstallButtonText { get; } = new(value: ILibraryItemWithInstallAction.GetButtonText(isInstalled: false));

private bool _isDisposed;
private readonly IDisposable _modelDisposable;
Expand Down

0 comments on commit 9acf06f

Please sign in to comment.