Fixes for last commit

This commit is contained in:
Justin Swanson 2019-11-02 18:27:23 -05:00
parent 7438413fb6
commit 6b7fbb54f7
3 changed files with 13 additions and 4 deletions

View File

@ -34,7 +34,7 @@ namespace Wabbajack
public string Location { get; set; }
[Reactive]
public bool UIReady { get; set; }
public bool UIReady { get; set; } = true;
[Reactive]
public string AuthorName { get; set; }

View File

@ -1,9 +1,11 @@
using Alphaleonis.Win32.Filesystem;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reactive.Linq;
using System.Text;
using System.Threading.Tasks;
using Wabbajack.Common;
@ -19,8 +21,15 @@ namespace Wabbajack.UI
[Reactive]
public ModlistMetadata SelectedModList { get; set; }
[Reactive]
public bool CanInstall { get; set; }
private readonly ObservableAsPropertyHelper<bool> _CanInstall;
public bool CanInstall => _CanInstall.Value;
public ModeSelectionWindowVM()
{
this._CanInstall = this.WhenAny(x => x.SelectedModList)
.Select(x => x != null)
.ToProperty(this, nameof(this.CanInstall));
}
internal string Download()
{

View File

@ -41,7 +41,7 @@ namespace Wabbajack
public bool ShowNSFW { get; set; }
[Reactive]
public bool GCAfterUpdating { get; set; }
public bool GCAfterUpdating { get; set; } = true;
[Reactive]
public bool Enable { get; set; } = true;