mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-06 06:31:07 +01:00
Help button for many warning messages; Restored warning icon.
The error icon was gone because we are now using the ErrorDialog, which didn't have it. So added back explicitly. I decided to go with wxART_WARNING rather than wxART_ERROR because nearly all of these present as warnings.
This commit is contained in:
@@ -42,6 +42,24 @@ XO("Audacity successfully wrote a file in %s but failed to rename it as %s.");
|
||||
AbbreviatePath(fileName), renameTarget.GetFullName() );
|
||||
}
|
||||
|
||||
wxString FileException::ErrorHelpUrl() const
|
||||
{
|
||||
switch (cause) {
|
||||
case Cause::Open:
|
||||
case Cause::Read:
|
||||
return "Error:_Opening_or_reading_file";
|
||||
break;
|
||||
case Cause::Write:
|
||||
case Cause::Rename:
|
||||
return "Error:_Disk_full_or_not_writable";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
wxString FileException::AbbreviatePath( const wxFileName &fileName )
|
||||
{
|
||||
wxString target;
|
||||
|
||||
Reference in New Issue
Block a user