1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 16:15:48 +01:00

Avoid dangling else warning

This commit is contained in:
Paul Licameli
2016-09-18 10:35:20 -04:00
parent 981020a8fc
commit 236a271ef5

View File

@@ -2137,13 +2137,14 @@ namespace {
return _("Move to Scrub");
#else
wxMouseState State = wxGetMouseState();
if( State.LeftIsDown() )
if( State.LeftIsDown() ) {
// Since mouse is down, mention dragging first.
// IsScrubbing is true if Scrubbing OR seeking.
if( scrubber.IsOneShotSeeking() )
return _("Drag to Seek. Release to stop seeking.");
else
return _("Drag to Seek. Release and move to Scrub.");
}
// Since mouse is up, mention moving first.
return _("Move to Scrub. Drag to Seek.");
#endif