mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-08 04:32:00 +01:00
static Scrubber::Get()...
... not member functions of AudacityProject
This commit is contained in:
@@ -1238,7 +1238,6 @@ AudacityProject::AudacityProject(wxWindow * parent, wxWindowID id,
|
||||
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_BASIC
|
||||
mScrubOverlay = std::make_shared<ScrubbingOverlay>(this);
|
||||
mScrubber = std::make_unique<Scrubber>(this);
|
||||
#endif
|
||||
|
||||
mPlaybackScroller = std::make_unique<PlaybackScroller>(this);
|
||||
@@ -1854,11 +1853,12 @@ void AudacityProject::OnScrollRightButton(wxScrollEvent & /*event*/)
|
||||
bool AudacityProject::MayScrollBeyondZero() const
|
||||
{
|
||||
auto &project = *this;
|
||||
auto &scrubber = Scrubber::Get( project );
|
||||
auto &viewInfo = ViewInfo::Get( project );
|
||||
if (viewInfo.bScrollBeyondZero)
|
||||
return true;
|
||||
|
||||
if (GetScrubber().HasMark() ||
|
||||
if (scrubber.HasMark() ||
|
||||
IsAudioActive()) {
|
||||
if (mPlaybackScroller) {
|
||||
auto mode = mPlaybackScroller->GetMode();
|
||||
|
||||
Reference in New Issue
Block a user