Fixing update on PreCheckSucceeded

This commit is contained in:
Philipp Heenemann 2023-07-12 09:00:00 +02:00
parent d3767a0344
commit d6aaeda28c

View File

@ -2,7 +2,6 @@
using System.Threading.Tasks;
using System.Windows.Input;
using ReactiveUI;
using SPTInstaller.Aki.Helper;
using SPTInstaller.Controllers;
using SPTInstaller.Helpers;
using SPTInstaller.Models;
@ -12,16 +11,22 @@ namespace SPTInstaller.ViewModels;
public class PreChecksViewModel : ViewModelBase
{
private string _installPath;
private bool _preCheckSucceeded;
public ObservableCollection<PreCheckBase> PreChecks { get; set; } = new(ServiceHelper.GetAll<PreCheckBase>());
public ICommand StartInstallCommand { get; set; }
public bool PreCheckSucceeded { get; set; }
public string InstallPath
{
get => _installPath;
set => this.RaiseAndSetIfChanged(ref _installPath, value);
}
public bool PreCheckSucceeded
{
get => _preCheckSucceeded;
set => this.RaiseAndSetIfChanged(ref _preCheckSucceeded, value);
}
public PreChecksViewModel(IScreen host) : base(host)
{
var data = ServiceHelper.Get<InternalData?>();