mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-04 09:34:46 -07:00
FIX: can not send print since the param fault
jira: [STUDIO-9724] Change-Id: I1e8870e6e0b182ed6c026784b169cfcf56c56e4c (cherry picked from commit 181316374321822da231612cc7e87f77395a20ac)
This commit is contained in:
parent
eeebaa3f74
commit
25900bb917
1 changed files with 5 additions and 2 deletions
|
|
@ -2108,6 +2108,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
|||
//check blacklist
|
||||
for (auto i = 0; i < m_ams_mapping_result.size(); i++) {
|
||||
|
||||
const auto& ams_id = m_ams_mapping_result[i].ams_id;
|
||||
auto tid = m_ams_mapping_result[i].tray_id;
|
||||
|
||||
std::string filament_type = boost::to_upper_copy(m_ams_mapping_result[i].type);
|
||||
|
|
@ -2122,7 +2123,8 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
|||
bool in_blacklist = false;
|
||||
std::string action;
|
||||
std::string info;
|
||||
DeviceManager::check_filaments_in_blacklist(filament_brand, filament_type, tid, in_blacklist, action, info);
|
||||
|
||||
DeviceManager::check_filaments_in_blacklist(filament_brand, filament_type, stoi(ams_id), in_blacklist, action, info);
|
||||
|
||||
if (in_blacklist && action == "warning") {
|
||||
wxString prohibited_error = wxString::FromUTF8(info);
|
||||
|
|
@ -2173,6 +2175,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
|||
|
||||
for (auto i = 0; i < m_ams_mapping_result.size(); i++) {
|
||||
|
||||
const auto& ams_id = m_ams_mapping_result[i].ams_id;
|
||||
auto tid = m_ams_mapping_result[i].tray_id;
|
||||
|
||||
std::string filament_type = boost::to_upper_copy(m_ams_mapping_result[i].type);
|
||||
|
|
@ -2187,7 +2190,7 @@ void SelectMachineDialog::on_ok_btn(wxCommandEvent &event)
|
|||
bool in_blacklist = false;
|
||||
std::string action;
|
||||
std::string info;
|
||||
DeviceManager::check_filaments_in_blacklist(filament_brand, filament_type, tid, in_blacklist, action, info);
|
||||
DeviceManager::check_filaments_in_blacklist(filament_brand, filament_type, stoi(ams_id), in_blacklist, action, info);
|
||||
|
||||
if (in_blacklist && action == "prohibition") {
|
||||
has_prohibited_filament = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue