mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
FIX: show all re-fill while sending print
jira: [STUDIO-10888] Change-Id: I2b1a98eddd2c34a83a73ef7cbef39ab05d569aef (cherry picked from commit ee76a2191ff633af3311ef659b9feb63e7bdedeb)
This commit is contained in:
@@ -2069,20 +2069,6 @@ void AmsReplaceMaterialDialog::create()
|
||||
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)
|
||||
{
|
||||
if (obj)
|
||||
|
||||
@@ -433,7 +433,6 @@ public:
|
||||
|
||||
public:
|
||||
void update_machine_obj(MachineObject* obj);
|
||||
void update_mapping_result(std::vector<FilamentInfo> result);
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
void on_dpi_changed(const wxRect& suggested_rect) override;
|
||||
|
||||
|
||||
@@ -963,7 +963,6 @@ void SelectMachineDialog::popup_filament_backup()
|
||||
if (!dev) return;
|
||||
if (dev->get_selected_machine()/* && dev->get_selected_machine()->filam_bak.size() > 0*/) {
|
||||
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->ShowModal();
|
||||
}
|
||||
|
||||
@@ -1200,7 +1200,6 @@ void SyncAmsInfoDialog::popup_filament_backup()
|
||||
if (!dev) return;
|
||||
if (dev->get_selected_machine() /* && dev->get_selected_machine()->filam_bak.size() > 0*/) {
|
||||
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->ShowModal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user