1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-05 16:43:52 +01:00

Update pin button tooltip

This commit is contained in:
James Crook
2020-03-16 11:18:43 +00:00
parent 501cc204fd
commit b0f629c4df

View File

@@ -1781,10 +1781,9 @@ void AdornedRulerPanel::UpdateButtonStates()
auto gAudioIO = AudioIO::Get();
pinButton->SetAlternateIdx(
(gAudioIO->IsCapturing() ? 2 : 0) + (state ? 0 : 1));
// Bug 1584: Toltip now shows what clicking will do.
const auto label = state
? XO("Click to unpin")
: XO("Click to pin");
// Bug 1584: Tooltip now shows what clicking will do.
// Bug 2357: Action of button (and hence tooltip wording) updated.
const auto label = XO("Timeline Options");
common(*pinButton, wxT("PinnedHead"), label);
}
}