store project settings content when opening database

This is required to tell Sourcetrail that the database content is up to date with the current project settings.
This commit is contained in:
mlangkabel
2018-12-18 13:26:10 +01:00
parent 3bb799cc77
commit 834cfc336e
4 changed files with 57 additions and 30 deletions
+5
View File
@@ -86,6 +86,11 @@ namespace sourcetrail
setupDatabase();
}
void DatabaseStorage::setProjectSettingsText(const std::string& text)
{
insertOrUpdateMetaValue("project_settings", text);
}
bool DatabaseStorage::isEmpty() const
{
const std::string tableName = "meta";