| 214 | } |
| 215 | |
| 216 | void SetPlayRegionToSelection(AudacityProject &project) |
| 217 | { |
| 218 | auto &viewInfo = ViewInfo::Get( project ); |
| 219 | auto &playRegion = viewInfo.playRegion; |
| 220 | auto &selectedRegion = viewInfo.selectedRegion; |
| 221 | playRegion.SetAllTimes( selectedRegion.t0(), selectedRegion.t1() ); |
| 222 | if(!playRegion.Empty()) |
| 223 | ActivatePlayRegion(project); |
| 224 | } |
| 225 | |
| 226 | void OnSetRegion(AudacityProject &project, |
| 227 | bool left, bool selection, const TranslatableString &dialogTitle) |
no test coverage detected