1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-05 19:21:59 +01:00

Tooltip on recording meter toolbar now changes with meter on/off

This commit is contained in:
james.k.crook@gmail.com
2014-11-13 16:29:08 +00:00
parent 2c64427129
commit bce372bfee
2 changed files with 10 additions and 3 deletions

View File

@@ -141,9 +141,13 @@ void MeterToolBar::RegenerateTooltips()
{
#if wxUSE_TOOLTIPS
if( mPlayMeter )
mPlayMeter->SetToolTip( _("Playback Level") );
mPlayMeter->SetToolTip( _("Playback Level.") );
if( mRecordMeter )
mRecordMeter->SetToolTip( _("Recording Level (Click to monitor.)") );
mRecordMeter->SetToolTip(
!gAudioIO->IsMonitoring() ?
_("Recording Level. (Click to monitor).") :
_("Recording Level. (Click to turn monitoring off).")
);
#endif
}

View File

@@ -1417,7 +1417,10 @@ void Meter::StartMonitoring()
gAudioIO->SetMeters(record, play);
}
}
// Update preferences also forces tooltips to be changed.
wxCommandEvent e(EVT_METER_PREFERENCES_CHANGED);
e.SetEventObject(this);
GetParent()->GetEventHandler()->ProcessEvent(e);
}
//