return false if overwrite was not allowed.
| 118 | |
| 119 | // return false if overwrite was not allowed. |
| 120 | bool FFmpegPresets::OverwriteIsOk( wxString &name ) |
| 121 | { |
| 122 | FFmpegPreset *preset = FindPreset(name); |
| 123 | if (preset) |
| 124 | { |
| 125 | auto query = XO("Overwrite preset '%s'?").Format(name); |
| 126 | int action = AudacityMessageBox( |
| 127 | query, |
| 128 | XO("Confirm Overwrite"), |
| 129 | wxYES_NO | wxCENTRE); |
| 130 | if (action == wxNO) return false; |
| 131 | } |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | |
| 136 | bool FFmpegPresets::SavePreset(ExportFFmpegOptions *parent, wxString &name) |
no test coverage detected