diff --git a/Wabbajack.Lib/Manifest.cs b/Wabbajack.Lib/Manifest.cs index 1aa4d846..bfb527d0 100644 --- a/Wabbajack.Lib/Manifest.cs +++ b/Wabbajack.Lib/Manifest.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Linq; using Wabbajack.Common; using Wabbajack.Common.Serialization.Json; @@ -9,6 +10,7 @@ namespace Wabbajack.Lib public class Manifest { public string Name; + public Version Version; public string Author; public string Description; @@ -28,6 +30,7 @@ namespace Wabbajack.Lib public Manifest(ModList modlist) { Name = modlist.Name; + Version = modlist.Version; Author = modlist.Author; Description = modlist.Description; diff --git a/Wabbajack/Views/ManifestView.xaml b/Wabbajack/Views/ManifestView.xaml index a650488d..282839ec 100644 --- a/Wabbajack/Views/ManifestView.xaml +++ b/Wabbajack/Views/ManifestView.xaml @@ -24,7 +24,8 @@ - + + diff --git a/Wabbajack/Views/ManifestView.xaml.cs b/Wabbajack/Views/ManifestView.xaml.cs index f7775036..07a102e9 100644 --- a/Wabbajack/Views/ManifestView.xaml.cs +++ b/Wabbajack/Views/ManifestView.xaml.cs @@ -20,8 +20,7 @@ namespace Wabbajack Modlist = modlist; var manifest = new Manifest(modlist); - if(ViewModel == null) - ViewModel = new ManifestVM(manifest); + ViewModel ??= new ManifestVM(manifest); InitializeComponent(); @@ -29,6 +28,8 @@ namespace Wabbajack { this.OneWayBind(ViewModel, x => x.Name, x => x.Name.Text) .DisposeWith(disposable); + this.OneWayBind(ViewModel, x => x.Manifest.Version, x => x.Version.Text) + .DisposeWith(disposable); this.OneWayBind(ViewModel, x => x.Author, x => x.Author.Text) .DisposeWith(disposable); this.OneWayBind(ViewModel, x => x.Description, x => x.Description.Text)