| 1077 | } |
| 1078 | |
| 1079 | void OnTrackMoveDown(const CommandContext &context) |
| 1080 | { |
| 1081 | auto &project = context.project; |
| 1082 | auto &trackPanel = TrackPanel::Get( project ); |
| 1083 | auto &tracks = TrackList::Get( project ); |
| 1084 | |
| 1085 | const auto focusedTrack = TrackFocus::Get( project ).Get(); |
| 1086 | if (focusedTrack && tracks.CanMoveDown(*focusedTrack)) { |
| 1087 | DoMoveTrack(project, *focusedTrack, TrackUtilities::OnMoveDownID); |
| 1088 | trackPanel.Refresh(false); |
| 1089 | } |
| 1090 | } |
| 1091 | |
| 1092 | void OnTrackMoveTop(const CommandContext &context) |
| 1093 | { |
nothing calls this directly
no test coverage detected