1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Restore status message "Click and drag to select audio"

This commit is contained in:
Paul Licameli 2017-06-27 22:35:19 -04:00
parent 1c0af82903
commit b3208ab12d

View File

@ -469,6 +469,12 @@ HitTestResult SelectHandle::HitTest
MaySetOnDemandTip(pTrack, tip);
if (tip == "") {
const auto ttb = pProject->GetToolsToolBar();
if (ttb)
tip = ttb->GetMessageForTool(selectTool);
}
return HitTestResult{ { tip, pCursor }, &Instance() };
}
@ -852,7 +858,7 @@ UIHandle::Result SelectHandle::Drag
}
HitTestPreview SelectHandle::Preview
(const TrackPanelMouseEvent &, const AudacityProject *)
(const TrackPanelMouseEvent &, const AudacityProject *pProject)
{
wxString tip;
wxCursor *pCursor;
@ -860,6 +866,11 @@ HitTestPreview SelectHandle::Preview
(SelectionBoundary(mSelectionBoundary),
(mFreqSelMode == FREQ_SEL_SNAPPING_CENTER),
tip, pCursor);
if (tip == "") {
const auto ttb = pProject->GetToolsToolBar();
if (ttb)
tip = ttb->GetMessageForTool(selectTool);
}
return { tip, pCursor };
}