mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 15:09:08 +02:00
Simplify with more uses of HideQuickPlayIndicator()
This commit is contained in:
parent
cd57e0a26c
commit
c12993a53b
@ -2140,12 +2140,9 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
if (evt.Leaving() || (changeInScrubZone && inScrubZone)) {
|
if (evt.Leaving() || (changeInScrubZone && inScrubZone)) {
|
||||||
if (evt.Leaving()) {
|
if (evt.Leaving()) {
|
||||||
// Erase the line
|
// Erase the line
|
||||||
mQuickPlayInd = false;
|
HideQuickPlayIndicator();
|
||||||
DrawQuickPlayIndicator(NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Refresh();
|
|
||||||
|
|
||||||
SetCursor(mCursorDefault);
|
SetCursor(mCursorDefault);
|
||||||
mIsWE = false;
|
mIsWE = false;
|
||||||
|
|
||||||
@ -2160,8 +2157,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
}
|
}
|
||||||
else if (evt.Entering() || (changeInScrubZone && !inScrubZone)) {
|
else if (evt.Entering() || (changeInScrubZone && !inScrubZone)) {
|
||||||
SetCursor(mCursorHand);
|
SetCursor(mCursorHand);
|
||||||
mQuickPlayInd = false;
|
HideQuickPlayIndicator();
|
||||||
DrawQuickPlayIndicator(NULL);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2328,8 +2324,7 @@ void AdornedRulerPanel::OnMouseEvents(wxMouseEvent &evt)
|
|||||||
|
|
||||||
if (evt.LeftUp())
|
if (evt.LeftUp())
|
||||||
{
|
{
|
||||||
mQuickPlayInd = false;
|
HideQuickPlayIndicator();
|
||||||
DrawQuickPlayIndicator(NULL);
|
|
||||||
|
|
||||||
if (HasCapture())
|
if (HasCapture())
|
||||||
ReleaseMouse();
|
ReleaseMouse();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user