1
0
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:
James Crook
2020-09-14 17:43:28 +01:00
parent b9212d8393
commit caf4eadb97
14 changed files with 74 additions and 20 deletions

View File

@@ -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;