FIX: do not popup for AMS1

jira: [STUDIO-12083]
Change-Id: Id2297576fa2b520282d8e4ce9af8e47817fc7088
(cherry picked from commit 8d29e09c1b8c1b9598f869235e99038d48b1bffc)
This commit is contained in:
xin.zhang 2025-05-09 12:25:53 +08:00 committed by Noisyfox
parent 043abb4389
commit f62e9a71e2

View file

@ -1831,6 +1831,10 @@ AMSHumidity::AMSHumidity(wxWindow* parent, wxWindowID id, AMSinfo info, const wx
Bind(wxEVT_LEFT_UP, [this](wxMouseEvent& e) {
if (m_show_humidity) {
if (m_amsinfo.ams_type == AMSModel::GENERIC_AMS) {
return;/*STUDIO-12083*/
}
auto mouse_pos = ClientToScreen(e.GetPosition());
auto rect = ClientToScreen(wxPoint(0, 0));