MCPcopy Create free account
hub / github.com/audacity/audacity / Save

Method Save

src/ProjectFileManager.cpp:292–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292bool ProjectFileManager::Save()
293{
294 auto &projectFileIO = ProjectFileIO::Get(mProject);
295
296 if (auto action = ProjectFileIOExtensionRegistry::OnSave(
297 mProject, [this](auto& path, bool rename)
298 { return DoSave(audacity::ToWXString(path), rename); });
299 action != OnSaveAction::Continue)
300 return action == OnSaveAction::Handled;
301
302 // Prompt for file name?
303 if (projectFileIO.IsTemporary())
304 {
305 return SaveAs(true);
306 }
307
308 return DoSave(projectFileIO.GetFileName(), false);
309}
310
311#if 0
312// I added this to "fix" bug #334. At that time, we were on wxWidgets 2.8.12 and

Callers 8

SaveToCloudFunction · 0.45
OnExitMethod · 0.45
OnRescanMethod · 0.45
ApplyChangesMethod · 0.45
OnCloseWindowMethod · 0.45
RunMethod · 0.45

Calls 4

GetFunction · 0.85
ToWXStringFunction · 0.85
IsTemporaryMethod · 0.80
OnSaveFunction · 0.50

Tested by

no test coverage detected