mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 08:18:25 +02:00
[ui] Correctly retrieve path of most recent project to initialize dialogs
This commit is contained in:
parent
f56a9579f2
commit
d8c851961d
1 changed files with 4 additions and 3 deletions
|
@ -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"]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue