1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 08:31:13 +02:00

Add Help Button.

Two more disk full errors were missing help-link buttons.
This commit is contained in:
James Crook 2020-09-25 10:37:01 +01:00
parent 528d04c8f0
commit 4810897b74

View File

@ -291,13 +291,13 @@ bool ProjectFileManager::DoSave(const FilePath & fileName, const bool fromSaveAs
if ( !wxRenameFile(fileName, safetyFileName) ) if ( !wxRenameFile(fileName, safetyFileName) )
{ {
AudacityMessageBox( ShowErrorDialog(
XO( &window,
"Audacity failed to write file %s.\nPerhaps disk is full or not writable.")
.Format(safetyFileName),
XO("Error Writing to File"), XO("Error Writing to File"),
wxICON_STOP, XO("Audacity failed to write file %s.\nPerhaps disk is full or not writable.")
&window); .Format(safetyFileName),
"Error:_Disk_full_or_not_writable"
);
return false; return false;
} }
} }
@ -305,13 +305,13 @@ bool ProjectFileManager::DoSave(const FilePath & fileName, const bool fromSaveAs
bool success = projectFileIO.SaveProject(fileName, mLastSavedTracks); bool success = projectFileIO.SaveProject(fileName, mLastSavedTracks);
if (!success) if (!success)
{ {
AudacityMessageBox( ShowErrorDialog(
XO( &window,
"Could not save project. Perhaps %s \nis not writable or the disk is full.")
.Format(fileName),
XO("Error Saving Project"), XO("Error Saving Project"),
wxICON_ERROR, XO("Could not save project. Perhaps %s \nis not writable or the disk is full.")
&window); .Format(fileName),
"Error:_Disk_full_or_not_writable"
);
if (fromSaveAs) if (fromSaveAs)
{ {