Skip to content

Commit

Permalink
FIX: wrong text encoding [STUDIO-3753]
Browse files Browse the repository at this point in the history
Change-Id: Ie05367ab294c87426dc4ce534ffb28a183a447bf
  • Loading branch information
LiZ-Li-BBL authored and lanewei120 committed Jul 31, 2023
1 parent 5328d34 commit 8ae8b6b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/AMSMaterialsSetting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,13 @@ void AMSMaterialsSetting::on_select_ok(wxCommandEvent &event)

if (in_blacklist) {
if (action == "prohibition") {
MessageDialog msg_wingow(nullptr, info, _L("Error"), wxICON_WARNING | wxOK);
MessageDialog msg_wingow(nullptr, wxString::FromUTF8(info), _L("Error"), wxICON_WARNING | wxOK);
msg_wingow.ShowModal();
//m_comboBox_filament->SetSelection(m_filament_selection);
return;
}
else if (action == "warning") {
MessageDialog msg_wingow(nullptr, info, _L("Warning"), wxICON_INFORMATION | wxOK);
MessageDialog msg_wingow(nullptr, wxString::FromUTF8(info), _L("Warning"), wxICON_INFORMATION | wxOK);
msg_wingow.ShowModal();
}
}
Expand Down
13 changes: 7 additions & 6 deletions src/slic3r/GUI/CalibrationWizardPresetPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ bool CalibrationPresetPage::is_filaments_compatiable(const std::vector<Preset*>
}

if (!Print::check_multi_filaments_compatibility(filament_types)) {
error_tips = L("Can not print multiple filaments which have large difference of temperature together. Otherwise, the extruder and nozzle may be blocked or damaged during printing");
error_tips = _u8L("Can not print multiple filaments which have large difference of temperature together. Otherwise, the extruder and nozzle may be blocked or damaged during printing");
return false;
}

Expand Down Expand Up @@ -1164,11 +1164,12 @@ void CalibrationPresetPage::update_show_status()
}
}

if (is_blocking_printing()) {
show_status(CaliPresetPageStatus::CaliPresetStatusUnsupportedPrinter);
return;
}
else if (obj_->is_connecting() || !obj_->is_connected()) {
//if (is_blocking_printing()) {
// show_status(CaliPresetPageStatus::CaliPresetStatusUnsupportedPrinter);
// return;
//}
//else
if (obj_->is_connecting() || !obj_->is_connected()) {
show_status(CaliPresetPageStatus::CaliPresetStatusInConnecting);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/slic3r/GUI/DeviceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5140,7 +5140,7 @@ void DeviceManager::check_filaments_in_blacklist(std::string tag_vendor, std::st
action = prohibited_filament["action"].get<std::string>();
description = prohibited_filament["description"].get<std::string>();

description = blacklist_prompt[description].ToStdString();
description = blacklist_prompt[description].ToUTF8().data();
}
else {
return;
Expand Down

0 comments on commit 8ae8b6b

Please sign in to comment.