FIX: the encoding of filament check_ams_filament_valid

jira: [STUDIO-12251]
Change-Id: Idc3d23dce67d3e835f15c47984fdd68041371d61
(cherry picked from commit 42b15b4d41a099c5f1aca9dd59ac592aafba0b43)
This commit is contained in:
xin.zhang
2025-05-23 17:53:16 +08:00
committed by Noisyfox
parent 2d69d58ce9
commit 4b6b3cc7bd
5 changed files with 46 additions and 48 deletions

View File

@@ -1448,7 +1448,7 @@ bool CalibrationPresetPage::is_filament_in_blacklist(int tray_id, Preset* preset
if (wxGetApp().app_config->get("skip_ams_blacklist_check") != "true") {
bool in_blacklist = false;
std::string action;
std::string info;
wxString info;
std::string filamnt_type;
preset->get_filament_type(filamnt_type);
@@ -1459,7 +1459,7 @@ bool CalibrationPresetPage::is_filament_in_blacklist(int tray_id, Preset* preset
}
if (in_blacklist) {
error_tips = info;
error_tips = info.ToUTF8().data();
if (action == "prohibition") {
return false;
}