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

Set preferences dialog title based on meter type

This commit is contained in:
lllucius 2014-12-28 06:25:16 +00:00
parent a3786dd78a
commit 97251986ed

View File

@ -1760,9 +1760,12 @@ void Meter::OnPreferences(wxCommandEvent & WXUNUSED(event))
wxRadioButton *vertical;
int meterRefreshRate = mMeterRefreshRate;
wxString title(mIsInput ? _("Recording Meter Preferences") : _("Playback Meter Preferences"));
// Dialog is a child of the project, rather than of the toolbar.
// This determines where it pops up.
wxDialog dlg(GetActiveProject(), wxID_ANY, wxString(_("Meter Preferences")));
wxDialog dlg(GetActiveProject(), wxID_ANY, title);
ShuttleGui S(&dlg, eIsCreating);
S.StartVerticalLay();
{