1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 15:49:36 +02:00

Bug 1901 - Status bar message does not update when Recording or Playback sliders are moved

This commit is contained in:
Leland Lucius 2021-02-10 13:43:06 -06:00
parent 52acaf6031
commit a7197d7d14

View File

@ -1317,6 +1317,14 @@ void LWSlider::SendUpdate( float newValue )
Refresh();
// Update the project's status bar as well
if (mTipPanel) {
auto tip = GetTip(mCurrentValue);
auto pProject = FindProjectFromWindow( mParent );
if (pProject)
ProjectStatus::Get( *pProject ).Set( tip );
}
wxCommandEvent e( wxEVT_COMMAND_SLIDER_UPDATED, mID );
int intValue = (int)( ( mCurrentValue - mMinValue ) * 1000.0f /
( mMaxValue - mMinValue ) );