ENH:add "SyncAmsInfoDialog"

JIRA: none

Change-Id: I8e26178f6da816e102a40b429c565696924c58ea
(cherry picked from commit 2a46460d5a65279cbb42c8aef2474172b1e1ae30)
(cherry picked from commit f7995d5a9f682107bd629841e2f903b0e6a0e7f2)
This commit is contained in:
zhou.xu
2024-12-30 14:13:24 +08:00
committed by Noisyfox
parent 417454a4c5
commit ad79ed6d93
12 changed files with 4677 additions and 61 deletions

View File

@@ -1047,7 +1047,12 @@ void PlaterPresetComboBox::update()
filament_color = m_preset_bundle->project_config.opt_string("filament_colour", (unsigned int) m_filament_idx);
wxColor clr(filament_color);
clr_picker->SetBackgroundColour(clr);
clr_picker->SetBitmap(*get_extruder_color_icons(true)[m_filament_idx]);
std::vector<wxBitmap *> bitmaps = get_extruder_color_icons(true);
if (m_filament_idx < bitmaps.size()) {
clr_picker->SetBitmap(*bitmaps[m_filament_idx]);
} else {
return;
}
#ifdef __WXOSX__
clr_picker->SetLabel(clr_picker->GetLabel()); // Let setBezelStyle: be called
clr_picker->Refresh();