code: moved project version related variables to project class

This commit is contained in:
itsmattkc
2022-01-06 12:50:40 -08:00
parent 8dbcbea891
commit 3960f54e9c
7 changed files with 14 additions and 8 deletions
+3 -3
View File
@@ -54,11 +54,11 @@ bool ProjectLoadTask::Run()
if (!ok) {
SetError(tr("Failed to parse project version."));
return false;
} else if (project_version > Core::kProjectVersion) {
} else if (project_version > Project::kProjectVersion) {
// Project is newer than we support
SetError(tr("This project is newer than this version of Olive and cannot be opened."));
SetError(tr("This project is from a newer version of Olive and cannot be opened in this version."));
return false;
} else if (project_version < 210528) { // Change this if we drop support for a project version
} else if (project_version < Project::kProjectMinimumVersion) { // Change this if we drop support for a project version
// Project is older than we support
SetError(tr("This project is from a version of Olive that is no longer supported in this version."));
return false;