1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 06:01:04 +01:00

More rapid response from tooltips for pushbuttons, on Mac at least

This commit is contained in:
Paul Licameli
2016-06-20 23:59:42 -04:00
parent 013bcf9635
commit 9b21e11ff6

View File

@@ -383,8 +383,12 @@ void AButton::OnMouseEvent(wxMouseEvent & event)
wxSize clientSize = GetClientSize();
AButtonState prevState = GetState();
if (event.Entering())
if (event.Entering()) {
auto text = GetToolTipText();
UnsetToolTip();
SetToolTip(text);
mCursorIsInWindow = true;
}
else if (event.Leaving())
mCursorIsInWindow = false;
else