From cc6929e506dbd6e7a70a88addba168f88427ab2d Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Tue, 23 Jun 2026 22:21:49 +0800 Subject: [PATCH] Fix issue that modified highlight not properly handled for `printer_options_with_variant_2` options --- src/slic3r/GUI/Tab.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 06cd891281..641be23edd 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1211,7 +1211,13 @@ void Tab::check_extruder_options_status(int index, bool &sys_extruder, bool &mod if (m_type == Preset::TYPE_FILAMENT && kvp.second.second == -1) { continue; } - std::string target_opt_key = base_opt_key + "#" + std::to_string(config_index); + + unsigned int stride = 1; + if (printer_options_with_variant_2.count(base_opt_key) > 0) { + stride = 2; + } + + std::string target_opt_key = base_opt_key + "#" + std::to_string(config_index * stride); auto status_iter = m_all_extruder_options_status.find(target_opt_key); if (status_iter != m_all_extruder_options_status.end()) {