1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-23 07:58:05 +02:00

Better enum value name

This commit is contained in:
Paul Licameli 2018-07-31 21:32:48 -04:00
parent 3010d3aaa8
commit b502d88285
3 changed files with 4 additions and 4 deletions

View File

@ -1804,7 +1804,7 @@ bool AudacityProject::MayScrollBeyondZero() const
IsAudioActive()) {
if (mPlaybackScroller) {
auto mode = mPlaybackScroller->GetMode();
if (mode == PlaybackScroller::Mode::Centered ||
if (mode == PlaybackScroller::Mode::Pinned ||
mode == PlaybackScroller::Mode::Right)
return true;
}
@ -6300,7 +6300,7 @@ void AudacityProject::PlaybackScroller::OnTimer(wxCommandEvent &event)
default:
wxASSERT(false);
/* fallthru */
case Mode::Centered:
case Mode::Pinned:
deltaX = posX - width / 2; break;
case Mode::Right:
deltaX = posX - width; break;

View File

@ -813,7 +813,7 @@ public:
enum class Mode {
Off,
Refresh,
Centered,
Pinned,
Right,
};

View File

@ -1514,7 +1514,7 @@ void ControlToolBar::StartScrolling()
using Mode = AudacityProject::PlaybackScroller::Mode;
const auto project = GetActiveProject();
if (project) {
auto mode = Mode::Centered;
auto mode = Mode::Pinned;
#if 0
// Enable these lines to pin the playhead right instead of center,