mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
AUP3: Automatically save a permanent project
If it was recovered.
This commit is contained in:
parent
d48ec11578
commit
5652b9b039
@ -1179,7 +1179,7 @@ bool ProjectFileIO::ShouldVacuum(const std::shared_ptr<TrackList> &tracks)
|
|||||||
// Let's make a percentage...should be plenty of head room
|
// Let's make a percentage...should be plenty of head room
|
||||||
current *= 100;
|
current *= 100;
|
||||||
|
|
||||||
wxLogDebug(wxT("used = %lld total = %lld %lld\n"), current, total, total ? current / total : 0);
|
wxLogDebug(wxT("used = %lld total = %lld %lld"), current, total, total ? current / total : 0);
|
||||||
if (!total || current / total > 80)
|
if (!total || current / total > 80)
|
||||||
{
|
{
|
||||||
wxLogDebug(wxT("not vacuuming"));
|
wxLogDebug(wxT("not vacuuming"));
|
||||||
|
@ -144,9 +144,13 @@ auto ProjectFileManager::ReadProjectFile( const FilePath &fileName )
|
|||||||
{
|
{
|
||||||
if (projectFileIO.IsRecovered())
|
if (projectFileIO.IsRecovered())
|
||||||
{
|
{
|
||||||
|
bool resaved = projectFileIO.SaveProject(fileName);
|
||||||
AudacityMessageBox(
|
AudacityMessageBox(
|
||||||
XO("This project was not saved properly the last time Audacity ran.\n\n"
|
resaved
|
||||||
"It has been recovered to the last snapshot."),
|
? XO("This project was not saved properly the last time Audacity ran.\n\n"
|
||||||
|
"It has been recovered to the last snapshot and resaved.")
|
||||||
|
: XO("This project was not saved properly the last time Audacity ran.\n\n"
|
||||||
|
"It has been recovered to the last snapshot."),
|
||||||
XO("Project Recovered"),
|
XO("Project Recovered"),
|
||||||
wxICON_WARNING,
|
wxICON_WARNING,
|
||||||
&window);
|
&window);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user