Fixed WJ splash image being removed when not selecting a new one

This commit is contained in:
erri120 2019-10-07 18:01:24 +02:00
parent a56c773f59
commit 558c937220
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -51,18 +51,18 @@ namespace Wabbajack
{
if (state.UIReady)
{
BitmapImage splashScreen = null;
if (newBannerFile != null)
{
BitmapImage splashScreen = null;
splashScreen = new BitmapImage(new Uri(newBannerFile));
state.newImagePath = newBannerFile;
state.SplashScreenImage = splashScreen;
}
string modListName = ModlistNameProperty.Text;
string modListAuthor = ModlistAuthorProperty.Text;
string modListDescription = ModlistDescriptionProperty.Text;
string modListWebsite = ModlistWebsiteProperty.Text;
state.newImagePath = newBannerFile;
state.SplashScreenImage = splashScreen;
state.SplashScreenModName = modListName;
state.SplashScreenSummary = modListDescription;
state.SplashScreenAuthorName = modListAuthor;