ENH: add jump to potion button for Clumping detection by object error

Added option information to the error prompt to facilitate users to jump to the corresponding option

jira: none
Change-Id: I3f13acac08a1e84625dc22363822989f1eab7ec7
(cherry picked from commit 96b4e6610fa532b74247abe925d8c8d19869bf93)
This commit is contained in:
songwei.li
2025-08-08 15:10:28 +08:00
committed by Noisyfox
parent ad45236056
commit f82783259a

View File

@@ -1211,8 +1211,12 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
if (m_config.timelapse_type == TimelapseType::tlSmooth)
return {L("Smooth mode of timelapse is not supported when \"by object\" sequence is enabled.")};
if (m_config.enable_wrapping_detection)
return {L("Clumping detection is not supported when \"by object\" sequence is enabled.")};
if (m_config.enable_wrapping_detection) {
StringObjectException clumping_detection_setting_err;
clumping_detection_setting_err.string = L("Clumping detection is not supported when \"by object\" sequence is enabled.");
clumping_detection_setting_err.opt_key = L("enable_wrapping_detection");
return clumping_detection_setting_err;
}
//BBS: refine seq-print validation logic
auto ret = sequential_print_clearance_valid(*this, collison_polygons, height_polygons);