ui: add example for python environment to source group settings ui and changed name in project settings file (issue #696)

This commit is contained in:
mlangkabel
2019-05-28 17:47:27 +02:00
parent d2b41f7598
commit b90444b943
5 changed files with 34 additions and 22 deletions
+7 -1
View File
@@ -23,7 +23,7 @@ const std::wstring ProjectSettings::BOOKMARK_DB_FILE_EXTENSION = L".srctrlbm";
const std::wstring ProjectSettings::INDEX_DB_FILE_EXTENSION = L".srctrldb";
const std::wstring ProjectSettings::TEMP_INDEX_DB_FILE_EXTENSION = L".srctrldb_tmp";
const size_t ProjectSettings::VERSION = 7;
const size_t ProjectSettings::VERSION = 8;
LanguageType ProjectSettings::getLanguageOfProject(const FilePath& filePath)
{
@@ -395,6 +395,12 @@ SettingsMigrator ProjectSettings::getMigrations() const
migrator.addMigration(7, std::make_shared<SettingsMigrationMoveKey>(key + "/standard", key + "/" + languageName + "_standard"));
}
for (std::shared_ptr<SourceGroupSettings> sourceGroupSettings : getAllSourceGroupSettings())
{
const std::string key = SourceGroupSettings::s_keyPrefix + sourceGroupSettings->getId();
migrator.addMigration(8, std::make_shared<SettingsMigrationMoveKey>(key + "/python_environment_directory_path", key + "/python_environment_path"));
}
return migrator;
}