From 3d92b44f9ff6175d2ce834bfd8e52bde1dc60d7b Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Tue, 9 Nov 2021 17:06:19 -0700 Subject: [PATCH] Show readme before/after install --- Wabbajack.App/Screens/StandardInstallationViewModel.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Wabbajack.App/Screens/StandardInstallationViewModel.cs b/Wabbajack.App/Screens/StandardInstallationViewModel.cs index 855c8c80..36169ac8 100644 --- a/Wabbajack.App/Screens/StandardInstallationViewModel.cs +++ b/Wabbajack.App/Screens/StandardInstallationViewModel.cs @@ -198,8 +198,15 @@ public class StandardInstallationViewModel : ViewModelBase _logger.LogInformation("Installer created, starting the installation process"); try { + + if (!string.IsNullOrWhiteSpace(_config.ModList.Readme)) + OSUtil.OpenWebsite(new Uri(_config.ModList.Readme)); + var result = await Task.Run(async () => await _installer.Begin(CancellationToken.None)); if (!result) throw new Exception("Installation failed"); + + if (!string.IsNullOrWhiteSpace(_config.ModList.Readme)) + OSUtil.OpenWebsite(new Uri(_config.ModList.Readme)); if (result) await SaveConfigAndContinue(_config); } @@ -219,6 +226,7 @@ public class StandardInstallationViewModel : ViewModelBase await image.CopyToAsync(os); } + await _installStateManager.SetLastState(new InstallationConfigurationSetting { Downloads = config.Downloads,