1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-02 20:37:38 +02:00

ToolsToolBar.cpp is free from cycles...

... Use ProjectSettings instead to communicate just an integer to the rest of
the program.
This commit is contained in:
Paul Licameli
2019-06-13 01:53:45 -04:00
parent 4cc35b145b
commit 2f18c624f8
10 changed files with 75 additions and 38 deletions

View File

@@ -75,6 +75,14 @@ ProjectSettings::ProjectSettings( AudacityProject &project )
}
gPrefs->Read(wxT("/GUI/SyncLockTracks"), &mIsSyncLocked, false);
bool multiToolActive = false;
gPrefs->Read(wxT("/GUI/ToolBars/Tools/MultiToolActive"), &multiToolActive);
if (multiToolActive)
mCurrentTool = ToolCodes::multiTool;
else
mCurrentTool = ToolCodes::selectTool;
UpdatePrefs();
}