mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Restore status message "Click and drag to select audio"
This commit is contained in:
parent
1c0af82903
commit
b3208ab12d
@ -469,6 +469,12 @@ HitTestResult SelectHandle::HitTest
|
|||||||
|
|
||||||
MaySetOnDemandTip(pTrack, tip);
|
MaySetOnDemandTip(pTrack, tip);
|
||||||
|
|
||||||
|
if (tip == "") {
|
||||||
|
const auto ttb = pProject->GetToolsToolBar();
|
||||||
|
if (ttb)
|
||||||
|
tip = ttb->GetMessageForTool(selectTool);
|
||||||
|
}
|
||||||
|
|
||||||
return HitTestResult{ { tip, pCursor }, &Instance() };
|
return HitTestResult{ { tip, pCursor }, &Instance() };
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -852,7 +858,7 @@ UIHandle::Result SelectHandle::Drag
|
|||||||
}
|
}
|
||||||
|
|
||||||
HitTestPreview SelectHandle::Preview
|
HitTestPreview SelectHandle::Preview
|
||||||
(const TrackPanelMouseEvent &, const AudacityProject *)
|
(const TrackPanelMouseEvent &, const AudacityProject *pProject)
|
||||||
{
|
{
|
||||||
wxString tip;
|
wxString tip;
|
||||||
wxCursor *pCursor;
|
wxCursor *pCursor;
|
||||||
@ -860,6 +866,11 @@ HitTestPreview SelectHandle::Preview
|
|||||||
(SelectionBoundary(mSelectionBoundary),
|
(SelectionBoundary(mSelectionBoundary),
|
||||||
(mFreqSelMode == FREQ_SEL_SNAPPING_CENTER),
|
(mFreqSelMode == FREQ_SEL_SNAPPING_CENTER),
|
||||||
tip, pCursor);
|
tip, pCursor);
|
||||||
|
if (tip == "") {
|
||||||
|
const auto ttb = pProject->GetToolsToolBar();
|
||||||
|
if (ttb)
|
||||||
|
tip = ttb->GetMessageForTool(selectTool);
|
||||||
|
}
|
||||||
return { tip, pCursor };
|
return { tip, pCursor };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user