mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 00:19:27 +02:00
Bug 2422 - Append Recording always scrolls vertically to bottom track
Fix: Move the scrolling to ProjectAudioManager::DoRecord(), where it's known whether the recording is appending to existing tracks or not.
This commit is contained in:
parent
fff9e6a2e4
commit
25c1a0b280
@ -733,6 +733,8 @@ bool ProjectAudioManager::DoRecord(AudacityProject &project,
|
||||
TrackList::Get( *p ).GroupChannels(*first, recordingChannels);
|
||||
// Bug 1548. First of new tracks needs the focus.
|
||||
TrackFocus::Get(*p).Set(first);
|
||||
if (TrackList::Get(*p).back())
|
||||
TrackList::Get(*p).back()->EnsureVisible();
|
||||
}
|
||||
|
||||
//Automated Input Level Adjustment Initialization
|
||||
|
@ -280,8 +280,6 @@ TrackPanel::TrackPanel(wxWindow * parent, wxWindowID id,
|
||||
*this, std::move( pAx ) );
|
||||
}
|
||||
|
||||
mRedrawAfterStop = false;
|
||||
|
||||
mTrackArtist = std::make_unique<TrackArtist>( this );
|
||||
|
||||
mTimeCount = 0;
|
||||
@ -418,8 +416,6 @@ void TrackPanel::OnTimer(wxTimerEvent& )
|
||||
{
|
||||
projectAudioIO.SetAudioIOToken(0);
|
||||
window.RedrawProject();
|
||||
|
||||
mRedrawAfterStop = false;
|
||||
}
|
||||
if (mLastDrawnSelectedRegion != mViewInfo->selectedRegion) {
|
||||
UpdateSelectionDisplay();
|
||||
@ -438,20 +434,12 @@ void TrackPanel::OnTimer(wxTimerEvent& )
|
||||
|
||||
// Periodically update the display while recording
|
||||
|
||||
if (!mRedrawAfterStop) {
|
||||
mRedrawAfterStop = true;
|
||||
MakeParentRedrawScrollbars();
|
||||
mListener->TP_ScrollUpDown( 99999999 );
|
||||
if ((mTimeCount % 5) == 0) {
|
||||
// Must tell OnPaint() to recreate the backing bitmap
|
||||
// since we've not done a full refresh.
|
||||
mRefreshBacking = true;
|
||||
Refresh( false );
|
||||
}
|
||||
else {
|
||||
if ((mTimeCount % 5) == 0) {
|
||||
// Must tell OnPaint() to recreate the backing bitmap
|
||||
// since we've not done a full refresh.
|
||||
mRefreshBacking = true;
|
||||
Refresh( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
if(mTimeCount > 1000)
|
||||
mTimeCount = 0;
|
||||
|
@ -202,13 +202,6 @@ protected:
|
||||
|
||||
bool mRefreshBacking;
|
||||
|
||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||
|
||||
protected:
|
||||
|
||||
#endif
|
||||
|
||||
bool mRedrawAfterStop;
|
||||
|
||||
protected:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user