[ui] Correctly retrieve path of most recent project to initialize dialogs

This commit is contained in:
Candice Bentéjac 2024-09-04 14:57:00 +02:00
parent f56a9579f2
commit d8c851961d

View file

@ -40,9 +40,10 @@ Page {
if (_reconstruction.graph && _reconstruction.graph.filepath) {
folder = Filepath.stringToUrl(Filepath.dirname(_reconstruction.graph.filepath))
} else {
var projects = MeshroomApp.recentProjectFiles;
if (projects.length > 0 && Filepath.exists(projects[0])) {
folder = Filepath.stringToUrl(Filepath.dirname(projects[0]))
var projects = MeshroomApp.recentProjectFiles
if (projects.length > 0 && Filepath.exists(projects[0]["path"])) {
folder = Filepath.stringToUrl(Filepath.dirname(projects[0]["path"]))
}
}