1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 22:45:29 +01:00

Give a "yellow zone" warning for checkpoint failure without data loss

This commit is contained in:
Paul Licameli
2020-09-06 12:17:38 -04:00
parent 5342d980fb
commit 327ada3c46
3 changed files with 44 additions and 7 deletions

View File

@@ -37,8 +37,14 @@ XO("Audacity successfully wrote a file in %s but failed to rename it as %s.");
default:
break;
}
wxString target;
return format.Format(
AbbreviatePath(fileName), renameTarget.GetFullName() );
}
wxString FileException::AbbreviatePath( const wxFileName &fileName )
{
wxString target;
#ifdef __WXMSW__
// Drive letter plus colon
@@ -54,7 +60,5 @@ XO("Audacity successfully wrote a file in %s but failed to rename it as %s.");
target = path.GetFullPath();
#endif
return format.Format( target, renameTarget.GetFullName() );
return target;
}