FIX: the event should be skipped

jira: [studio-12348]
Change-Id: I5a876989ec763a2f0dc510b352c21059495d7314
This commit is contained in:
xin.zhang 2025-05-22 19:42:47 +08:00 committed by lane.wei
parent f49eb54565
commit cdb9acc8a4

View File

@ -44,7 +44,7 @@ void uiAmsPercentHumidityDryPopup::Create()
m_close_btn = new ScalableButton(this, wxID_ANY, "hum_popup_close");
m_close_btn->SetBackgroundColour(*wxWHITE);
m_close_btn->Bind(wxEVT_LEFT_UP, [this](auto& e) { Dismiss(); });
m_close_btn->Bind(wxEVT_LEFT_UP, [this](auto& e) { Dismiss(); e.Skip(); });
title_sizer->AddStretchSpacer();
title_sizer->Add(title, 0, wxALIGN_CENTER_HORIZONTAL);
title_sizer->AddStretchSpacer();