From 558c937220c526c45f98f16d5635083928620996 Mon Sep 17 00:00:00 2001 From: erri120 Date: Mon, 7 Oct 2019 18:01:24 +0200 Subject: [PATCH] Fixed WJ splash image being removed when not selecting a new one --- Wabbajack/ModlistPropertiesWindow.xaml.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Wabbajack/ModlistPropertiesWindow.xaml.cs b/Wabbajack/ModlistPropertiesWindow.xaml.cs index 2d91279f..cadeff19 100644 --- a/Wabbajack/ModlistPropertiesWindow.xaml.cs +++ b/Wabbajack/ModlistPropertiesWindow.xaml.cs @@ -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;