From 878267e97858c00714de3074ed81ebd92d52b146 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 1 Feb 2019 22:19:37 +0000 Subject: [PATCH] Always show splash even if we already have a config.xml. --- src/wx/wx_util.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 354297d49..f77cfacd3 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -455,13 +455,11 @@ maybe_show_splash () { wxSplashScreen* splash = 0; try { - if (!Config::have_existing ("config.xml")) { - wxBitmap bitmap; - boost::filesystem::path p = shared_path () / "splash.png"; - if (bitmap.LoadFile (std_to_wx (p.string ()), wxBITMAP_TYPE_PNG)) { - splash = new wxSplashScreen (bitmap, wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_NO_TIMEOUT, 0, 0, -1); - wxYield (); - } + wxBitmap bitmap; + boost::filesystem::path p = shared_path () / "splash.png"; + if (bitmap.LoadFile (std_to_wx (p.string ()), wxBITMAP_TYPE_PNG)) { + splash = new wxSplashScreen (bitmap, wxSPLASH_CENTRE_ON_SCREEN | wxSPLASH_NO_TIMEOUT, 0, 0, -1); + wxYield (); } } catch (boost::filesystem::filesystem_error& e) { /* Maybe we couldn't find the splash image; never mind */ -- 2.30.2