mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-07 07:12:34 +02:00
A certain string does not need translation
This commit is contained in:
parent
da671304b9
commit
63c7d47378
@ -2767,18 +2767,20 @@ void AdornedRulerPanel::OnContextMenu(wxContextMenuEvent & WXUNUSED(event))
|
|||||||
|
|
||||||
void AdornedRulerPanel::UpdateButtonStates()
|
void AdornedRulerPanel::UpdateButtonStates()
|
||||||
{
|
{
|
||||||
bool state = PlaybackPrefs::GetPinnedHeadPreference();
|
{
|
||||||
auto pinButton = static_cast<AButton*>(FindWindow(OnTogglePinnedStateID));
|
bool state = PlaybackPrefs::GetPinnedHeadPreference();
|
||||||
pinButton->PopUp();
|
auto pinButton = static_cast<AButton*>(FindWindow(OnTogglePinnedStateID));
|
||||||
pinButton->SetAlternateIdx(state ? 0 : 1);
|
pinButton->PopUp();
|
||||||
const auto label = state
|
pinButton->SetAlternateIdx(state ? 0 : 1);
|
||||||
|
const auto label = state
|
||||||
// Label descibes the present state, not what the click does
|
// Label descibes the present state, not what the click does
|
||||||
// (which is, to toggle the state)
|
// (which is, to toggle the state)
|
||||||
? _("Pinned play/record Head")
|
? _("Pinned play/record Head")
|
||||||
: _("Unpinned play/record Head");
|
: _("Unpinned play/record Head");
|
||||||
const auto &fullLabel = ComposeButtonLabel(*mProject, _("PinnedHead"), label);
|
const auto &fullLabel = ComposeButtonLabel(*mProject, wxT("PinnedHead"), label);
|
||||||
pinButton->SetLabel(fullLabel);
|
pinButton->SetLabel(fullLabel);
|
||||||
pinButton->SetToolTip(fullLabel);
|
pinButton->SetToolTip(fullLabel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AdornedRulerPanel::OnTogglePinnedState(wxCommandEvent & event)
|
void AdornedRulerPanel::OnTogglePinnedState(wxCommandEvent & event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user