FIX: update the text and icon while mapping

jira: [STUDIO-11679]
Change-Id: Ia744c27e3236ffa7c2157867b026e91c210dd5bf
(cherry picked from commit e685e57839a2933f139cfb3fe98a30a5bc8c34af)
This commit is contained in:
xin.zhang
2025-04-21 15:15:44 +08:00
committed by Noisyfox
parent d2bbb02949
commit 5a7dee9add
4 changed files with 38 additions and 17 deletions

View File

@@ -3875,8 +3875,15 @@ void SelectMachineDialog::change_materialitem_tip(bool no_ams_only_ext)
item->item->SetToolTip(wxEmptyString);
}
else {
if (item->item->GetToolTipText() != m_ams_tooltip) {
item->item->SetToolTip(m_ams_tooltip);
wxString tip_text;
if (item->item->m_match) {
tip_text = _L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you can click it to modify");
} else {
tip_text = _L("Unable to automatically match to suitable filament. Please click to manually match.");
}
if (item->item->GetToolTipText() != tip_text) {
item->item->SetToolTip(tip_text);
}
}
}