| 912 | } |
| 913 | |
| 914 | void OnSyncLock(const CommandContext &context) |
| 915 | { |
| 916 | auto &project = context.project; |
| 917 | auto &trackPanel = TrackPanel::Get( project ); |
| 918 | |
| 919 | SyncLockTracks.Toggle(); |
| 920 | gPrefs->Flush(); |
| 921 | |
| 922 | // Toolbar, project sync-lock handled within |
| 923 | ToolManager::ModifyAllProjectToolbarMenus(); |
| 924 | |
| 925 | trackPanel.Refresh(false); |
| 926 | } |
| 927 | |
| 928 | ///The following methods operate controls on specified tracks, |
| 929 | ///This will pop up the track panning dialog for specified track |