ENH:delete useless tips

jira:[STUDIO-11355]

Change-Id: If55b29d6b83d734c1d421dd9d61a01d202bda274
This commit is contained in:
tao wang 2025-04-09 21:15:04 +08:00 committed by lane.wei
parent f262e7d7a2
commit 28c6abe8b1
2 changed files with 2 additions and 5 deletions

View File

@ -3881,9 +3881,7 @@ void SelectMachineDialog::change_materialitem_tip(bool no_ams_only_ext)
Material *item = iter->second;
if (item) {
if (no_ams_only_ext && (item->item->m_ams_name == "Ext") && (m_checkbox_list["use_ams"]->getValue() != "on")) {
if (item->item->GetToolTipText() != m_ams_tooltip_ext) {
item->item->SetToolTip(m_ams_tooltip_ext);
}
item->item->SetToolTip(wxEmptyString);
}
else {
if (item->item->GetToolTipText() != m_ams_tooltip) {
@ -3942,7 +3940,7 @@ void SelectMachineDialog::reset_and_sync_ams_list()
m_materialList.clear();
m_filaments.clear();
m_ams_tooltip =_L("Upper half area: Original\nLower half area: Filament in AMS\nAnd you can click it to modify");
m_ams_tooltip_ext = _L("To map to AMS, enable 'Use AMS' in 'Advanced Options'.");
const auto& full_config = wxGetApp().preset_bundle->full_config();
size_t nozzle_nums = full_config.option<ConfigOptionFloatsNullable>("nozzle_diameter")->values.size();

View File

@ -360,7 +360,6 @@ private:
std::shared_ptr<int> m_token = std::make_shared<int>(0);
wxString m_ams_tooltip;
wxString m_ams_tooltip_ext;
std::vector<wxString> m_bedtype_list;
std::vector<MachineObject*> m_list;
std::vector<FilamentInfo> m_filaments;