FIX: only enable this on windows, since there are freeze problems on mac platform

JIRA: [STUDIO-12929]
Change-Id: If793d72db63ba00f4a65f09c024d07fd5e7776c3
(cherry picked from commit 7054f18e2b26b562d336401980a0f54df2050f01)
This commit is contained in:
xin.zhang
2025-07-08 14:34:51 +08:00
committed by Noisyfox
parent 4e99a042bb
commit d0cc4b35ee

View File

@@ -485,12 +485,14 @@ bool Button::AcceptsFocus() const { return canFocus; }
void Button::EnableTooltipEvenDisabled()
{
#if defined(_MSC_VER) || defined(_WIN32)
auto parent = this->GetParent();
if (parent)
{
parent->Bind(wxEVT_MOTION, &Button::OnParentMotion, this);
parent->Bind(wxEVT_LEAVE_WINDOW, &Button::OnParentLeave, this);
};
#endif
};
void Button::OnParentMotion(wxMouseEvent& event)