| 1064 | } |
| 1065 | |
| 1066 | void OnTrackMoveUp(const CommandContext &context) |
| 1067 | { |
| 1068 | auto &project = context.project; |
| 1069 | auto &trackPanel = TrackPanel::Get( project ); |
| 1070 | auto &tracks = TrackList::Get( project ); |
| 1071 | |
| 1072 | const auto focusedTrack = TrackFocus::Get( project ).Get(); |
| 1073 | if (focusedTrack && tracks.CanMoveUp(*focusedTrack)) { |
| 1074 | DoMoveTrack(project, *focusedTrack, TrackUtilities::OnMoveUpID); |
| 1075 | trackPanel.Refresh(false); |
| 1076 | } |
| 1077 | } |
| 1078 | |
| 1079 | void OnTrackMoveDown(const CommandContext &context) |
| 1080 | { |