mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Show readme before/after install
This commit is contained in:
parent
6253f3d2ee
commit
3d92b44f9f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user