FIX: [STUDIO-2562] tooltip splash on speed button

Change-Id: I29a9d5bde81b7ddca962568ddcd9298850d6ea3a
This commit is contained in:
chunmao.guo 2023-05-12 12:05:27 +08:00 committed by Lane.Wei
parent b5663b25c9
commit c2e0c3d109

View file

@ -51,7 +51,8 @@ void ImageSwitchButton::SetLabels(wxString const &lbl_on, wxString const &lbl_of
labels[0] = lbl_on;
labels[1] = lbl_off;
auto fina_txt = GetValue() ? labels[0] : labels[1];
SetToolTip(fina_txt);
if (GetToolTipText() != fina_txt)
SetToolTip(fina_txt);
messureSize();
Refresh();
}