From b748f36246064cd86f005e81df05c83994495b4e Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 4 Mar 2021 13:36:07 +0100 Subject: [PATCH] Fixed layout of loading file progress dialog --- src/slic3r/GUI/Plater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 15b3a17c7..3a227bfb3 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2134,7 +2134,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ const auto loading = _L("Loading") + dots; wxProgressDialog dlg(loading, "", 100, q, wxPD_AUTO_HIDE); - dlg.Pulse(); + wxBusyCursor busy; auto *new_model = (!load_model || one_by_one) ? nullptr : new Slic3r::Model(); std::vector obj_idxs; @@ -2144,6 +2144,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ const auto filename = path.filename(); const auto dlg_info = _L("Loading file") + ": " + from_path(filename); dlg.Update(static_cast(100.0f * static_cast(i) / static_cast(input_files.size())), dlg_info); + dlg.Fit(); const bool type_3mf = std::regex_match(path.string(), pattern_3mf); const bool type_zip_amf = !type_3mf && std::regex_match(path.string(), pattern_zip_amf);