ENH:Fix the issues discovered in the demo

jira: STUDIO-10384 STUDIO-10385 STUDIO-10387
Change-Id: I68f3099b9fbb6d6996373cae07b2e62930ce614c
(cherry picked from commit 91df890100199a3e26ef3792a1f8650d2dab8577)
This commit is contained in:
zhou.xu
2025-02-13 15:57:07 +08:00
committed by Noisyfox
parent b8220bb81f
commit 25a195d1f4
6 changed files with 39 additions and 11 deletions

View File

@@ -402,7 +402,9 @@ void SyncAmsInfoDialog::update_map_when_change_map_mode()
for (size_t i = 0; i < m_preview_colors_in_thumbnail.size(); i++) {
if (i < m_ams_combo_info.ams_filament_colors.size()) {
auto result = decode_ams_color(m_ams_combo_info.ams_filament_colors[i]);
m_cur_colors_in_thumbnail[i] = result;
if (i < m_cur_colors_in_thumbnail.size()) {
m_cur_colors_in_thumbnail[i] = result;
}
}
else {
if (!m_cur_colors_in_thumbnail.empty()) {
@@ -4355,6 +4357,11 @@ SyncAmsInfoDialog::~SyncAmsInfoDialog() {
}
}
void SyncAmsInfoDialog::set_info(SyncInfo &info)
{
m_input_info = info;
}
void SyncAmsInfoDialog::update_lan_machine_list()
{
DeviceManager *dev = wxGetApp().getDeviceManager();