mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 06:06:24 +01:00
Lowered check for scrubbing into GetMessageForTool...
... which is called only in one place
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "../AllThemeResources.h"
|
||||
#include "../ImageManipulation.h"
|
||||
#include "../Project.h"
|
||||
#include "../tracks/ui/Scrubbing.h"
|
||||
#include "../Theme.h"
|
||||
|
||||
#include "../Experimental.h"
|
||||
@@ -269,7 +270,11 @@ const wxChar * ToolsToolBar::GetMessageForTool( int ToolNumber ) const
|
||||
wxASSERT( ToolNumber >= 0 );
|
||||
wxASSERT( ToolNumber < numTools );
|
||||
|
||||
return mMessageOfTool[ToolNumber];
|
||||
auto tip = ::GetActiveProject()->GetScrubber().StatusMessageForWave();
|
||||
if( tip.IsEmpty() )
|
||||
return mMessageOfTool[ToolNumber];
|
||||
else
|
||||
return tip;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user