FIX: show all re-fill while sending print

jira: [STUDIO-10888]
Change-Id: I2b1a98eddd2c34a83a73ef7cbef39ab05d569aef
This commit is contained in:
xin.zhang 2025-03-17 10:31:19 +08:00 committed by lane.wei
parent 3d3753b787
commit ee76a2191f
4 changed files with 0 additions and 17 deletions

View File

@ -2073,20 +2073,6 @@ void AmsReplaceMaterialDialog::create()
Fit(); Fit();
} }
void AmsReplaceMaterialDialog::update_mapping_result( std::vector<FilamentInfo> result)
{
m_tray_used.clear();
for (int i = 0; i < result.size(); i++) {
if (result[i].tray_id == VIRTUAL_TRAY_MAIN_ID || result[i].tray_id == VIRTUAL_TRAY_DEPUTY_ID)
{
continue;
}
m_tray_used.push_back(wxGetApp().transition_tridid(result[i].tray_id).ToStdString());
}
}
void AmsReplaceMaterialDialog::update_machine_obj(MachineObject* obj) void AmsReplaceMaterialDialog::update_machine_obj(MachineObject* obj)
{ {
if (obj) if (obj)

View File

@ -433,7 +433,6 @@ public:
public: public:
void update_machine_obj(MachineObject* obj); void update_machine_obj(MachineObject* obj);
void update_mapping_result(std::vector<FilamentInfo> result);
void paintEvent(wxPaintEvent& evt); void paintEvent(wxPaintEvent& evt);
void on_dpi_changed(const wxRect& suggested_rect) override; void on_dpi_changed(const wxRect& suggested_rect) override;

View File

@ -963,7 +963,6 @@ void SelectMachineDialog::popup_filament_backup()
if (!dev) return; if (!dev) return;
if (dev->get_selected_machine()/* && dev->get_selected_machine()->filam_bak.size() > 0*/) { if (dev->get_selected_machine()/* && dev->get_selected_machine()->filam_bak.size() > 0*/) {
AmsReplaceMaterialDialog* m_replace_material_popup = new AmsReplaceMaterialDialog(this); AmsReplaceMaterialDialog* m_replace_material_popup = new AmsReplaceMaterialDialog(this);
m_replace_material_popup->update_mapping_result(m_ams_mapping_result);
m_replace_material_popup->update_machine_obj(dev->get_selected_machine()); m_replace_material_popup->update_machine_obj(dev->get_selected_machine());
m_replace_material_popup->ShowModal(); m_replace_material_popup->ShowModal();
} }

View File

@ -1198,7 +1198,6 @@ void SyncAmsInfoDialog::popup_filament_backup()
if (!dev) return; if (!dev) return;
if (dev->get_selected_machine() /* && dev->get_selected_machine()->filam_bak.size() > 0*/) { if (dev->get_selected_machine() /* && dev->get_selected_machine()->filam_bak.size() > 0*/) {
AmsReplaceMaterialDialog *m_replace_material_popup = new AmsReplaceMaterialDialog(this); AmsReplaceMaterialDialog *m_replace_material_popup = new AmsReplaceMaterialDialog(this);
m_replace_material_popup->update_mapping_result(m_ams_mapping_result);
m_replace_material_popup->update_machine_obj(dev->get_selected_machine()); m_replace_material_popup->update_machine_obj(dev->get_selected_machine());
m_replace_material_popup->ShowModal(); m_replace_material_popup->ShowModal();
} }