Fix of PS 2.4.0 Beta 4: No image handler for type 15 defined. #7469

On Linux, image handlers need to be initialized before showing
any PNG.
This commit is contained in:
Vojtech Bubnik 2021-12-11 16:59:21 +01:00
parent f033a79a2a
commit 45038f2ccc

View File

@ -949,6 +949,9 @@ bool GUI_App::check_older_app_config(Semver current_version, bool backup)
BOOST_LOG_TRIVIAL(info) << "last app config file used: " << m_older_data_dir_path;
// ask about using older data folder
// See GH issue #7469.
wxInitAllImageHandlers();
InfoDialog msg(nullptr
, format_wxstr(_L("You are opening %1% version %2%."), SLIC3R_APP_NAME, SLIC3R_VERSION)
, backup ?