mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-09 06:06:24 +01:00
Double click on Record button pins record head right, not center
This commit is contained in:
@@ -751,7 +751,8 @@ void ControlToolBar::OnPlay(wxCommandEvent & WXUNUSED(evt))
|
||||
auto p = GetActiveProject();
|
||||
|
||||
if (doubleClicked)
|
||||
p->GetPlaybackScroller().Activate(true);
|
||||
p->GetPlaybackScroller().Activate
|
||||
(AudacityProject::PlaybackScroller::Mode::Centered);
|
||||
else {
|
||||
if (!CanStopAudioStream())
|
||||
return;
|
||||
@@ -794,7 +795,8 @@ void ControlToolBar::StopPlaying(bool stopStream /* = true*/)
|
||||
AudacityProject *project = GetActiveProject();
|
||||
|
||||
if(project) {
|
||||
project->GetPlaybackScroller().Activate(false);
|
||||
project->GetPlaybackScroller().Activate
|
||||
(AudacityProject::PlaybackScroller::Mode::Off);
|
||||
// Let scrubbing code do some appearance change
|
||||
project->GetScrubber().StopScrubbing();
|
||||
}
|
||||
@@ -855,7 +857,8 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
||||
mRecord->ClearDoubleClicked();
|
||||
|
||||
if (doubleClicked) {
|
||||
GetActiveProject()->GetPlaybackScroller().Activate(true);
|
||||
GetActiveProject()->GetPlaybackScroller().Activate
|
||||
(AudacityProject::PlaybackScroller::Mode::Right);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -480,7 +480,8 @@ void TranscriptionToolBar::OnPlaySpeed(wxCommandEvent & WXUNUSED(event))
|
||||
button->ClearDoubleClicked();
|
||||
|
||||
if (doubleClicked) {
|
||||
GetActiveProject()->GetPlaybackScroller().Activate(true);
|
||||
GetActiveProject()->GetPlaybackScroller().Activate
|
||||
(AudacityProject::PlaybackScroller::Mode::Centered);
|
||||
|
||||
// Pop up the button
|
||||
SetButton(false, button);
|
||||
|
||||
Reference in New Issue
Block a user