mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Show readmes before and after install
This commit is contained in:
parent
b15d079c45
commit
a061428736
@ -325,6 +325,10 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
||||
ModList = await StandardInstaller.LoadFromFile(_dtos, path);
|
||||
ModListImage = BitmapFrame.Create(await StandardInstaller.ModListImageStream(path));
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(ModList.Readme))
|
||||
UIUtils.OpenWebsite(new Uri(ModList.Readme));
|
||||
|
||||
|
||||
StatusText = $"Install configuration for {ModList.Name}";
|
||||
TaskBarUpdate.Send($"Loaded {ModList.Name}", TaskbarItemProgressState.Normal);
|
||||
|
||||
@ -377,7 +381,6 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
||||
if (await downloader.Prepare())
|
||||
continue;
|
||||
|
||||
|
||||
var manager = _logins
|
||||
.FirstOrDefault(l => l.LoginFor() == downloader.GetType());
|
||||
if (manager == null)
|
||||
@ -446,6 +449,10 @@ public class InstallerVM : BackNavigatingVM, IBackNavigatingVM, ICpuStatusVM
|
||||
{
|
||||
TaskBarUpdate.Send($"Finished install of {ModList.Name}", TaskbarItemProgressState.Normal);
|
||||
InstallState = InstallState.Success;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(ModList.Readme))
|
||||
UIUtils.OpenWebsite(new Uri(ModList.Readme));
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Loading…
Reference in New Issue
Block a user