Improve checking placeholders

Dialog now shows all issues within the same dialog

If a custom gcode value is not specified within the config, a testing value is added. This ensures that (most) of the custom gcode is parsed, and thus checked against the definitions.
This commit is contained in:
Ocraftyone 2023-12-30 07:37:34 -05:00
parent d839d673d0
commit 4e3039b6f9
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125
2 changed files with 64 additions and 10 deletions

View file

@ -518,6 +518,10 @@ private:
double m_last_mm3_per_mm;
#endif // ENABLE_GCODE_VIEWER_DATA_CHECKING
#if ORCA_CHECK_GCODE_PLACEHOLDERS
std::map<std::string, std::vector<std::string>> m_placeholder_error_messages;
#endif
Point m_last_pos;
bool m_last_pos_defined;