mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Removed the yes/no option if not found
This commit is contained in:
parent
6302e89eb5
commit
752580beb9
@ -759,16 +759,17 @@ bool ExportCL::CheckFileName(wxFileName &filename, int WXUNUSED(format))
|
|||||||
cmd.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_ABSOLUTE);
|
cmd.Normalize(wxPATH_NORM_ALL & ~wxPATH_NORM_ABSOLUTE);
|
||||||
|
|
||||||
// Just verify the given path exists if it is absolute.
|
// Just verify the given path exists if it is absolute.
|
||||||
if (cmd.IsAbsolute() && !cmd.Exists()) {
|
if (cmd.IsAbsolute()) {
|
||||||
auto prompt = XO("\"%s\" couldn't be found.\n\nWould you like to continue anyway?")
|
if (!cmd.Exists()) {
|
||||||
.Format(cmd.GetFullPath());
|
AudacityMessageBox(
|
||||||
|
XO("\"%s\" couldn't be found.").Format(cmd.GetFullPath()),
|
||||||
|
XO("Warning"),
|
||||||
|
wxOK | wxICON_EXCLAMATION);
|
||||||
|
|
||||||
int action = AudacityMessageBox(
|
return false;
|
||||||
prompt,
|
}
|
||||||
XO("Warning"),
|
|
||||||
wxYES_NO | wxICON_EXCLAMATION);
|
|
||||||
|
|
||||||
return action == wxYES;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search for the command in the PATH list
|
// Search for the command in the PATH list
|
||||||
@ -783,15 +784,12 @@ bool ExportCL::CheckFileName(wxFileName &filename, int WXUNUSED(format))
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (path.empty()) {
|
if (path.empty()) {
|
||||||
auto prompt = XO("Unable to locate \"%s\" in your path.\n\nWould you like to continue anyway?")
|
|
||||||
.Format(cmd.GetFullPath());
|
|
||||||
|
|
||||||
int action = AudacityMessageBox(
|
int action = AudacityMessageBox(
|
||||||
prompt,
|
XO("Unable to locate \"%s\" in your path.").Format(cmd.GetFullPath()),
|
||||||
XO("Warning"),
|
XO("Warning"),
|
||||||
wxYES_NO | wxICON_EXCLAMATION);
|
wxOK | wxICON_EXCLAMATION);
|
||||||
|
|
||||||
return action == wxYES;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user