| 1103 | } |
| 1104 | |
| 1105 | void OnTrackMoveBottom(const CommandContext &context) |
| 1106 | { |
| 1107 | auto &project = context.project; |
| 1108 | auto &trackPanel = TrackPanel::Get( project ); |
| 1109 | auto &tracks = TrackList::Get( project ); |
| 1110 | |
| 1111 | const auto focusedTrack = TrackFocus::Get( project ).Get(); |
| 1112 | if (focusedTrack && tracks.CanMoveDown(*focusedTrack)) { |
| 1113 | DoMoveTrack(project, *focusedTrack, TrackUtilities::OnMoveBottomID); |
| 1114 | trackPanel.Refresh(false); |
| 1115 | } |
| 1116 | } |
| 1117 | |
| 1118 | // Menu definitions |
| 1119 |
nothing calls this directly
no test coverage detected