FIX: enable_prime_tower and enable_wrapping_detection warning does not work

The translated strings cannot match the correct config, delete the translation of these two opt_key

jira: STUDIO-13989, STUDIO-13988
Change-Id: I5e8ebf342b5bb18c1ca6a88a3916197941c0cb03
(cherry picked from commit a84d9ab466b1f6b1ccb727d4f34cdb7c2eb8e30a)
This commit is contained in:
songwei.li 2025-08-12 20:23:43 +08:00 committed by Noisyfox
parent f0cf58eede
commit 561f4ebfbd

View file

@ -1191,7 +1191,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
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");
clumping_detection_setting_err.opt_key = "enable_wrapping_detection";
return clumping_detection_setting_err;
}
@ -1216,7 +1216,7 @@ StringObjectException Print::validate(StringObjectException *warning, Polygons*
if (m_config.enable_wrapping_detection && warning!=nullptr) {
StringObjectException warningtemp;
warningtemp.string = L("Prime tower is required for clumping detection; otherwise, there may be flaws on the model.");
warningtemp.opt_key = L("enable_prime_tower");
warningtemp.opt_key = "enable_prime_tower";
warningtemp.is_warning = true;
*warning = warningtemp;
}