ENH:Reduce the number of page faults in AMS

Change-Id: I4bfb048ec62c35b515eecbb70c175fa0975d7f92
(cherry picked from commit 791be195475bd834c937fb63341713529e4f41b8)
This commit is contained in:
tao wang
2024-09-26 20:57:42 +08:00
committed by Noisyfox
parent a036994e0a
commit 7a197a3d8d
6 changed files with 27 additions and 35 deletions

View File

@@ -307,9 +307,11 @@ void TempInput::SetMinTemp(int temp) { min_temp = temp; }
void TempInput::SetLabel(const wxString &label)
{
wxWindow::SetLabel(label);
messureSize();
Refresh();
if (label != wxWindow::GetLabel()) {
wxWindow::SetLabel(label);
messureSize();
Refresh();
}
}
void TempInput::SetTextColor(StateColor const &color)