1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 17:49:45 +02:00

Simplify with more uses of HideQuickPlayIndicator()

This commit is contained in:
Paul Licameli 2016-04-26 11:05:13 -04:00
parent cd57e0a26c
commit c12993a53b

View File

@ -2140,12 +2140,9 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
if (evt.Leaving() || (changeInScrubZone && inScrubZone)) {
if (evt.Leaving()) {
// Erase the line
mQuickPlayInd = false;
DrawQuickPlayIndicator(NULL);
HideQuickPlayIndicator();
}
Refresh();
SetCursor(mCursorDefault);
mIsWE = false;
@ -2160,8 +2157,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
}
else if (evt.Entering() || (changeInScrubZone && !inScrubZone)) {
SetCursor(mCursorHand);
mQuickPlayInd = false;
DrawQuickPlayIndicator(NULL);
HideQuickPlayIndicator();
return;
}
@ -2328,8 +2324,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
if (evt.LeftUp())
{
mQuickPlayInd = false;
DrawQuickPlayIndicator(NULL);
HideQuickPlayIndicator();
if (HasCapture())
ReleaseMouse();