FIX: the event should be skipped

jira: [studio-12348]
Change-Id: I5a876989ec763a2f0dc510b352c21059495d7314
(cherry picked from commit cdb9acc8a4596036ce41de503453895e9f4e81f9)
This commit is contained in:
xin.zhang
2025-05-22 19:42:47 +08:00
committed by Noisyfox
parent fa8280f065
commit 9d3526958a

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();