mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
(bug 20, P2) Log some summary messages as well, for auto-recovery mode, so the log indicates the "safe" choice that was taken for each of the four types of errors.
This commit is contained in:
parent
a26652acfd
commit
7e1db64bc2
@ -1474,6 +1474,8 @@ _("Project check detected %d missing external audio \
|
||||
}
|
||||
iter++;
|
||||
}
|
||||
if ((action == 2) && bAutoRecoverMode)
|
||||
wxLogWarning(_(" Project check replaced missing aliased file(s) with silence."));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1524,6 +1526,8 @@ _("Project check detected %d missing alias (.auf) \
|
||||
}
|
||||
iter++;
|
||||
}
|
||||
if ((action == 0) && bAutoRecoverMode)
|
||||
wxLogWarning(_(" Project check regenerated missing alias summary file(s)."));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1579,6 +1583,8 @@ _("Project check detected %d missing audio data \
|
||||
b->SilenceLog();
|
||||
iter++;
|
||||
}
|
||||
if ((action == 2) && bAutoRecoverMode)
|
||||
wxLogWarning(_(" Project check replaced missing audio data blockfile(s) with silence."));
|
||||
}
|
||||
}
|
||||
|
||||
@ -1588,9 +1594,16 @@ _("Project check detected %d missing audio data \
|
||||
wxArrayString orphanFilePathArray; // orphan .au and .auf files
|
||||
this->FindOrphanBlockFiles(filePathArray, orphanFilePathArray);
|
||||
|
||||
if ((nResult != FSCKstatus_CLOSE_REQ) && !orphanFilePathArray.IsEmpty())
|
||||
{
|
||||
// In auto-recover mode, leave orphan blockfiles alone.
|
||||
// They will be deleted when project is saved the first time.
|
||||
if ((nResult != FSCKstatus_CLOSE_REQ) && !bAutoRecoverMode && !orphanFilePathArray.IsEmpty())
|
||||
if (bAutoRecoverMode)
|
||||
{
|
||||
wxLogWarning(_(" Project check ignored orphan blockfile(s). They will be deleted when project is saved."));
|
||||
action = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
wxString msgA =
|
||||
_("Project check found %d orphan blockfile(s). These files are \
|
||||
@ -1605,6 +1618,7 @@ _("Project check found %d orphan blockfile(s). These files are \
|
||||
NULL};
|
||||
wxLog::FlushActive(); // MultiDialog has "Show Log..." button, so make sure log is current.
|
||||
action = ShowMultiDialog(msg, _("Warning - Orphan Blockfile(s)"), buttons);
|
||||
}
|
||||
|
||||
if (action == 0)
|
||||
nResult = FSCKstatus_CLOSE_REQ;
|
||||
|
@ -2895,6 +2895,7 @@ void AudacityProject::WriteXML(XMLWriter &xmlFile)
|
||||
while (t) {
|
||||
if ((t->GetKind() == Track::Wave) && mWantSaveCompressed)
|
||||
{
|
||||
//vvv This should probably be a method, WaveTrack::WriteCompressedTrackXML().
|
||||
xmlFile.StartTag(wxT("import"));
|
||||
xmlFile.WriteAttr(wxT("filename"), mStrOtherNamesArray[ndx]); // Assumes mTracks order hasn't changed!
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user