waffle.lord 2ffa8f6b6d add overview page
also update some checks order
2024-07-10 13:00:52 -04:00

25 lines
631 B
C#

using System.Threading.Tasks;
using ReactiveUI;
namespace SPTInstaller.ViewModels;
public class OverviewViewModel : ViewModelBase
{
private string _providedPath;
private bool _debugging;
public OverviewViewModel(IScreen Host, string providedPath, bool debugging) : base(Host)
{
_providedPath = providedPath;
_debugging = debugging;
if (!string.IsNullOrEmpty(_providedPath))
{
Task.Run(NextCommand);
}
}
public void NextCommand()
{
NavigateTo(new InstallPathSelectionViewModel(HostScreen, _providedPath, _debugging));
}
}