Skip to content

Commit

Permalink
Allow marking project temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
crsib committed Feb 20, 2024
1 parent 8e2e1d6 commit 2e89458
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/lib-project-file-io/ProjectFileIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2409,6 +2409,11 @@ bool ProjectFileIO::IsRecovered() const
return mRecovered;
}

void ProjectFileIO::MarkTemporary()
{
mTemporary = true;
}

wxLongLong ProjectFileIO::GetFreeDiskSpace() const
{
wxLongLong freeSpace;
Expand Down
2 changes: 2 additions & 0 deletions libraries/lib-project-file-io/ProjectFileIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ class PROJECT_FILE_IO_API ProjectFileIO final
bool IsTemporary() const;
bool IsRecovered() const;

void MarkTemporary();

bool AutoSave(bool recording = false);
bool AutoSaveDelete(sqlite3 *db = nullptr);

Expand Down

0 comments on commit 2e89458

Please sign in to comment.