From c081aa97f783d2180fc1d816e0f86edb85558787 Mon Sep 17 00:00:00 2001 From: Javad Shafique Date: Tue, 20 Oct 2026 20:28:36 +0200 Subject: [PATCH] fix: SimplyPrint device tab ignores the uploaded file import URL (#16555) The tab switch queued a reload of the host's home page, which ran after the import URL and replaced it. Switch tabs synchronously first, then queue the import URL so it is the last page loaded. --- src/slic3r/Utils/SimplyPrint.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/slic3r/Utils/SimplyPrint.cpp b/src/slic3r/Utils/SimplyPrint.cpp index ff6860a244..98b1a7fa16 100644 --- a/src/slic3r/Utils/SimplyPrint.cpp +++ b/src/slic3r/Utils/SimplyPrint.cpp @@ -350,9 +350,13 @@ bool SimplyPrint::do_temp_upload(const boost::filesystem::path& file_path, if (should_open_in_external_browser()) { wxLaunchDefaultBrowser(url); } else { - const auto mainframe = GUI::wxGetApp().mainframe; - mainframe->request_select_tab(TAB_ID_MONITOR); - mainframe->load_printer_url(url); + // The tab switch queues a reload of the printer's home page, so switch synchronously + // first and queue the import page after it. + GUI::wxGetApp().CallAfter([url = wxString::FromUTF8(url)] { + const auto mainframe = GUI::wxGetApp().mainframe; + mainframe->select_tab(TAB_ID_MONITOR); + mainframe->load_printer_url(url); + }); } return true;