mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added messagebox to inform the user about version difference
This commit is contained in:
parent
112bf5687f
commit
b42c2fcd3c
@ -295,6 +295,28 @@ namespace Wabbajack
|
||||
HTMLReport = this.ModList.ReportHTML;
|
||||
Location = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
|
||||
|
||||
var currentWJVersion = new Version(WabbajackVersionInfo.FileVersion);
|
||||
var modlistWJVersion = new Version(modlist.WabbajackVersion.FileVersion);
|
||||
|
||||
if (currentWJVersion > modlistWJVersion)
|
||||
{
|
||||
MessageBox.Show(
|
||||
"The selected Modlist was build with an earlier version of Wabbajack. " +
|
||||
$"Current Version: {WabbajackVersionInfo.FileVersion}, " +
|
||||
$"Version used to build the Modlist: {modlist.WabbajackVersion.FileVersion}",
|
||||
"Information",
|
||||
MessageBoxButton.OK);
|
||||
}
|
||||
else if(currentWJVersion < modlistWJVersion)
|
||||
{
|
||||
MessageBox.Show(
|
||||
"The selected Modlist was build with a newer version of Wabbajack. " +
|
||||
$"Current Version: {WabbajackVersionInfo.FileVersion}, " +
|
||||
$"Version used to build the Modlist: {modlist.WabbajackVersion.FileVersion}",
|
||||
"Information",
|
||||
MessageBoxButton.OK);
|
||||
}
|
||||
|
||||
this.Slideshow.SlideShowElements = modlist.Archives
|
||||
.Select(m => m.State)
|
||||
.OfType<NexusDownloader.State>()
|
||||
|
Loading…
Reference in New Issue
Block a user