mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
AUP3: AutoRecoveryDialog experiment
Looking for feedback...
This commit is contained in:
@@ -18,6 +18,7 @@ Paul Licameli split from AudacityProject.cpp
|
||||
#include <wx/sstream.h>
|
||||
#include <wx/xml/xml.h>
|
||||
|
||||
#include "ActiveProjects.h"
|
||||
#include "DBConnection.h"
|
||||
#include "FileNames.h"
|
||||
#include "Project.h"
|
||||
@@ -1178,8 +1179,18 @@ void ProjectFileIO::SetFileName(const FilePath &fileName)
|
||||
{
|
||||
auto &project = mProject;
|
||||
|
||||
if (!mFileName.empty())
|
||||
{
|
||||
ActiveProjects::Remove(mFileName);
|
||||
}
|
||||
|
||||
mFileName = fileName;
|
||||
|
||||
if (!mFileName.empty())
|
||||
{
|
||||
ActiveProjects::Add(mFileName);
|
||||
}
|
||||
|
||||
if (mTemporary)
|
||||
{
|
||||
project.SetProjectName({});
|
||||
|
||||
Reference in New Issue
Block a user