diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 4ffcee9562..487814a286 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -3691,11 +3691,6 @@ void GCodeProcessor::apply_config(const DynamicPrintConfig& config) ensure_nozzle_group_result(static_cast(m_result.filaments_count)); } -void GCodeProcessor::enable_stealth_time_estimator(bool enabled) -{ - m_time_processor.machines[static_cast(PrintEstimatedStatistics::ETimeMode::Stealth)].enabled = enabled; -} - void GCodeProcessor::reset() { m_units = EUnits::Millimeters; diff --git a/src/libslic3r/GCode/GCodeProcessor.hpp b/src/libslic3r/GCode/GCodeProcessor.hpp index 151faa10cb..a196476e7a 100644 --- a/src/libslic3r/GCode/GCodeProcessor.hpp +++ b/src/libslic3r/GCode/GCodeProcessor.hpp @@ -1425,7 +1425,6 @@ inline constexpr float DEFAULT_FILAMENT_DENSITY = 1.245f; DynamicConfig export_config_for_render() const; - void enable_stealth_time_estimator(bool enabled); bool is_stealth_time_estimator_enabled() const { return m_time_processor.machines[static_cast(PrintEstimatedStatistics::ETimeMode::Stealth)].enabled; } diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index ba705d5563..9598fddac1 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -9283,10 +9283,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ if (config_substitutions.unrecogized_keys.size() > 0) { wxString text = wxString::Format(_L("The 3MF file version %s is newer than %s's version %s, found the following unrecognized keys:"), file_version.to_string_sf(), std::string(SLIC3R_APP_FULL_NAME), app_version.to_string_sf()); - std::string keys; - for (const std::string& key : config_substitutions.unrecogized_keys) - keys += (keys.empty() ? "" : ", ") + key; - text += "\n" + from_u8(keys) + "\n\n"; + text += "\n" + from_u8(boost::algorithm::join(config_substitutions.unrecogized_keys, ", ")) + "\n\n"; text += _L("You should update your software.\n"); log_and_show_3mf_info(text, newer_3mf_title); } @@ -9346,9 +9343,7 @@ std::vector Plater::priv::load_files(const std::vector& input_ } else if (load_config) { // Logged, not shown: it is the same for every BambuStudio project and needs no action. - std::string unrecognized; - for (const std::string& key : config_substitutions.unrecogized_keys) - unrecognized += (unrecognized.empty() ? "" : ", ") + key; + const std::string unrecognized = boost::algorithm::join(config_substitutions.unrecogized_keys, ", "); BOOST_LOG_TRIVIAL(info) << "BambuStudio " << file_version.to_string() << " project " << path.string() << ", unrecognized settings: " << (unrecognized.empty() ? "none" : unrecognized); }