mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-24 00:18:07 +02:00
Better enum value name
This commit is contained in:
parent
3010d3aaa8
commit
b502d88285
@ -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;
|
||||
|
@ -813,7 +813,7 @@ public:
|
||||
enum class Mode {
|
||||
Off,
|
||||
Refresh,
|
||||
Centered,
|
||||
Pinned,
|
||||
Right,
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user