Merge pull request #23585 from chennes/extractVersionMigrator

Gui: Improve version migration UX
This commit is contained in:
sliptonic
2025-09-20 10:01:40 -05:00
committed by GitHub
10 changed files with 618 additions and 154 deletions

View File

@@ -41,6 +41,8 @@
#include <Python.h>
#include <QString>
#include "Base/Console.h"
using namespace App;
namespace fs = std::filesystem;
@@ -576,6 +578,7 @@ void ApplicationDirectories::migrateAllPaths(const std::vector<fs::path> &paths)
} else {
newPath = path / versionStringForPath(major, minor);
}
Base::Console().message("Migrating config from %s to %s\n", Base::FileInfo::pathToString(path), Base::FileInfo::pathToString(newPath));
if (fs::exists(newPath)) {
continue; // Ignore an existing path: not an error, just a migration that was already done
}