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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user