diff --git a/Wabbajack/View Models/InstallerVM.cs b/Wabbajack/View Models/InstallerVM.cs index c574ccfd..cbb59d0a 100644 --- a/Wabbajack/View Models/InstallerVM.cs +++ b/Wabbajack/View Models/InstallerVM.cs @@ -93,6 +93,7 @@ namespace Wabbajack public IReactiveCommand BeginCommand { get; } public IReactiveCommand ShowReportCommand { get; } public IReactiveCommand OpenReadmeCommand { get; } + public IReactiveCommand VisitWebsiteCommand { get; } public InstallerVM(MainWindowVM mainWindowVM) { @@ -250,6 +251,11 @@ namespace Wabbajack canExecute: this.WhenAny(x => x.Installing) .Select(installing => !installing) .ObserveOnGuiThread()); + this.VisitWebsiteCommand = ReactiveCommand.Create( + execute: () => Process.Start(this.ModList.Website), + canExecute: this.WhenAny(x => x.ModList.Website) + .Select(x => x?.StartsWith("https://") ?? false) + .ObserveOnGuiThread()); // Have Installation location updates modify the downloads location if empty this.WhenAny(x => x.Location) diff --git a/Wabbajack/View Models/SlideShow.cs b/Wabbajack/View Models/SlideShow.cs index 2aaf7d46..12196fc4 100644 --- a/Wabbajack/View Models/SlideShow.cs +++ b/Wabbajack/View Models/SlideShow.cs @@ -83,11 +83,6 @@ namespace Wabbajack .ObserveOnGuiThread() .Do(modList => { - this.NexusSiteURL = modList.Website; - this.ModName = modList.Name; - this.AuthorName = modList.Author; - this.Summary = modList.Description; - this.SlideShowElements = modList.Archives .Select(m => m.State) .OfType() diff --git a/Wabbajack/Views/InstallationView.xaml b/Wabbajack/Views/InstallationView.xaml index 4edac7a9..933edeef 100644 --- a/Wabbajack/Views/InstallationView.xaml +++ b/Wabbajack/Views/InstallationView.xaml @@ -408,15 +408,22 @@ +