From e70527d804d61f62bf62960a92085e10180554cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20L=C3=BCtker?= Date: Mon, 13 Jul 2026 01:10:09 +0200 Subject: [PATCH] fix: show Bambu splash screen on Linux instead of black window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Benjamin Lütker --- src/slic3r/GUI/GUI_App.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 8dcbbf610e..5a4b419da5 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -3191,10 +3191,18 @@ bool GUI_App::on_init_inner() BOOST_LOG_TRIVIAL(info) << "begin to show the splash screen..."; //BBS use BBL splashScreen scrn = new BBLSplashScreen(bmp, wxSPLASH_CENTRE_ON_SCREEN, 0, splashscreen_pos); -#ifndef __linux__ + // Process pending paint events so the splash is drawn immediately on all + // platforms. Without this, GTK never paints the window before the heavy + // loading work begins, leaving a black window until the app is ready. wxYield(); -#endif + scrn->Raise(); + scrn->Update(); scrn->SetText(_L("Loading configuration")+ dots); + // BBLSplashScreen::SetText() does not force a repaint on non-macOS. + // Refresh() + Update() ensure the first status line is visible before + // the heavy startup work begins. + scrn->Refresh(); + scrn->Update(); } BOOST_LOG_TRIVIAL(info) << "loading systen presets...";