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
1 changed files with 12 additions and 12 deletions

View File

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