mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
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:
@@ -485,12 +485,14 @@ bool Button::AcceptsFocus() const { return canFocus; }
|
|||||||
|
|
||||||
void Button::EnableTooltipEvenDisabled()
|
void Button::EnableTooltipEvenDisabled()
|
||||||
{
|
{
|
||||||
|
#if defined(_MSC_VER) || defined(_WIN32)
|
||||||
auto parent = this->GetParent();
|
auto parent = this->GetParent();
|
||||||
if (parent)
|
if (parent)
|
||||||
{
|
{
|
||||||
parent->Bind(wxEVT_MOTION, &Button::OnParentMotion, this);
|
parent->Bind(wxEVT_MOTION, &Button::OnParentMotion, this);
|
||||||
parent->Bind(wxEVT_LEAVE_WINDOW, &Button::OnParentLeave, this);
|
parent->Bind(wxEVT_LEAVE_WINDOW, &Button::OnParentLeave, this);
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
void Button::OnParentMotion(wxMouseEvent& event)
|
void Button::OnParentMotion(wxMouseEvent& event)
|
||||||
|
|||||||
Reference in New Issue
Block a user