1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-21 16:37:12 +01:00

static ToolManager::Get()...

... not member functions of AudacityProject
This commit is contained in:
Paul Licameli
2019-05-01 13:18:39 -04:00
parent 68e25f3b7d
commit 15dd230ee1
11 changed files with 170 additions and 138 deletions

View File

@@ -27,8 +27,8 @@ void NextOrPrevFrame(AudacityProject &project, bool forward)
auto temp2 = ASlider::TemporarilyAllowFocus();
auto temp3 = MeterPanel::TemporarilyAllowFocus();
auto toolManager = project.GetToolManager();
auto botDock = toolManager->GetBotDock();
auto &toolManager = ToolManager::Get( project );
auto botDock = toolManager.GetBotDock();
// Define the set of windows we rotate among.
@@ -67,7 +67,7 @@ void NextOrPrevFrame(AudacityProject &project, bool forward)
wxWindow *toFocus = begin[idx2];
bool bIsAnEmptyDock=false;
if( idx2 != 1 )
bIsAnEmptyDock = ((idx2==0) ? toolManager->GetTopDock() : botDock)->
bIsAnEmptyDock = ((idx2==0) ? toolManager.GetTopDock() : botDock)->
GetChildren().GetCount() < 1;
// Skip docks that are empty (Bug 1564).