mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 12:12:23 +01:00
Free ControlToolBar from cycles. That's all the toolbars now!
This commit is contained in:
@@ -74,7 +74,6 @@
|
||||
#include "../FileNames.h"
|
||||
|
||||
#include "../tracks/ui/Scrubbing.h"
|
||||
#include "../prefs/TracksPrefs.h"
|
||||
#include "../toolbars/ToolManager.h"
|
||||
|
||||
IMPLEMENT_CLASS(ControlToolBar, ToolBar);
|
||||
@@ -745,20 +744,9 @@ void ControlToolBar::UpdateStatusBar()
|
||||
);
|
||||
}
|
||||
|
||||
bool ControlToolBar::IsTransportingPinned() const
|
||||
{
|
||||
if (!TracksPrefs::GetPinnedHeadPreference())
|
||||
return false;
|
||||
const auto &scrubber = Scrubber::Get( mProject );
|
||||
return
|
||||
!(scrubber.HasMark() &&
|
||||
!scrubber.WasSpeedPlaying() &&
|
||||
!Scrubber::ShouldScrubPinned());
|
||||
}
|
||||
|
||||
void ControlToolBar::StartScrollingIfPreferred()
|
||||
{
|
||||
if ( IsTransportingPinned() )
|
||||
if ( Scrubber::Get( mProject ).IsTransportingPinned() )
|
||||
StartScrolling();
|
||||
#ifdef __WXMAC__
|
||||
else if (Scrubber::Get( mProject ).HasMark()) {
|
||||
|
||||
Reference in New Issue
Block a user