| 290 | } |
| 291 | |
| 292 | bool 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 |
no test coverage detected