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()) {
|
IsAudioActive()) {
|
||||||
if (mPlaybackScroller) {
|
if (mPlaybackScroller) {
|
||||||
auto mode = mPlaybackScroller->GetMode();
|
auto mode = mPlaybackScroller->GetMode();
|
||||||
if (mode == PlaybackScroller::Mode::Centered ||
|
if (mode == PlaybackScroller::Mode::Pinned ||
|
||||||
mode == PlaybackScroller::Mode::Right)
|
mode == PlaybackScroller::Mode::Right)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -6300,7 +6300,7 @@ void AudacityProject::PlaybackScroller::OnTimer(wxCommandEvent &event)
|
|||||||
default:
|
default:
|
||||||
wxASSERT(false);
|
wxASSERT(false);
|
||||||
/* fallthru */
|
/* fallthru */
|
||||||
case Mode::Centered:
|
case Mode::Pinned:
|
||||||
deltaX = posX - width / 2; break;
|
deltaX = posX - width / 2; break;
|
||||||
case Mode::Right:
|
case Mode::Right:
|
||||||
deltaX = posX - width; break;
|
deltaX = posX - width; break;
|
||||||
|
@ -813,7 +813,7 @@ public:
|
|||||||
enum class Mode {
|
enum class Mode {
|
||||||
Off,
|
Off,
|
||||||
Refresh,
|
Refresh,
|
||||||
Centered,
|
Pinned,
|
||||||
Right,
|
Right,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1514,7 +1514,7 @@ void ControlToolBar::StartScrolling()
|
|||||||
using Mode = AudacityProject::PlaybackScroller::Mode;
|
using Mode = AudacityProject::PlaybackScroller::Mode;
|
||||||
const auto project = GetActiveProject();
|
const auto project = GetActiveProject();
|
||||||
if (project) {
|
if (project) {
|
||||||
auto mode = Mode::Centered;
|
auto mode = Mode::Pinned;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Enable these lines to pin the playhead right instead of center,
|
// Enable these lines to pin the playhead right instead of center,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user