| 2025 | } |
| 2026 | |
| 2027 | void ProjectFileIO::TentativeConnection::Commit() |
| 2028 | { |
| 2029 | if (!mCommitted && !mFileName.empty()) { |
| 2030 | mProjectFileIO.SetFileName(mFileName); |
| 2031 | mProjectFileIO.DiscardConnection(); |
| 2032 | mCommitted = true; |
| 2033 | } |
| 2034 | } |
| 2035 | |
| 2036 | auto ProjectFileIO::LoadProject(const FilePath &fileName, bool ignoreAutosave) |
| 2037 | -> std::optional<TentativeConnection> |
no test coverage detected