MCPcopy Create free account
hub / github.com/audacity/audacity / OverwriteIsOk

Method OverwriteIsOk

modules/import-export/mod-ffmpeg/FFmpegPresets.cpp:120–133  ·  view source on GitHub ↗

return false if overwrite was not allowed.

Source from the content-addressed store, hash-verified

118
119// return false if overwrite was not allowed.
120bool 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
136bool FFmpegPresets::SavePreset(ExportFFmpegOptions *parent, wxString &name)

Callers 1

SavePresetMethod · 0.80

Calls 1

AudacityMessageBoxFunction · 0.85

Tested by

no test coverage detected