1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02:00

Bug 1584 - Pinned / Unpinned tool tip inconsistency

This commit is contained in:
James Crook 2017-05-15 10:18:05 +01:00
parent a0ea5d64db
commit 349b66bbdd

View File

@ -2853,11 +2853,10 @@ void AdornedRulerPanel::UpdateButtonStates()
else
pinButton->PushDown();
pinButton->SetAlternateIdx(state ? 0 : 1);
// Bug 1584: Toltip now shows what clicking will do.
const auto label = state
// Label descibes the present state, not what the click does
// (which is, to toggle the state)
? _("Pinned Record/Play head")
: _("Unpinned Record/Play head");
? _("Click to unpin")
: _("Click to pin");
common(*pinButton, wxT("PinnedHead"), label);
}
}