diff --git a/meshroom/ui/qml/Homepage.qml b/meshroom/ui/qml/Homepage.qml index a102af70..71163f58 100644 --- a/meshroom/ui/qml/Homepage.qml +++ b/meshroom/ui/qml/Homepage.qml @@ -373,10 +373,10 @@ Page { Connections { target: projectDelegate function onClicked() { - if (!modelData["path"]){ + if (!modelData["path"]) { initFileDialogFolder(openFileDialog) openFileDialog.open() - } else{ + } else { // Open project mainStack.push("Application.qml") if (_reconstruction.loadUrl(modelData["path"])) { diff --git a/meshroom/ui/qml/main.qml b/meshroom/ui/qml/main.qml index f7174446..2772ffa8 100644 --- a/meshroom/ui/qml/main.qml +++ b/meshroom/ui/qml/main.qml @@ -119,12 +119,12 @@ ApplicationWindow { title: "Open File" nameFilters: ["Meshroom Graphs (*.mg)"] onAccepted: { - if (_reconstruction.loadUrl(currentFile)) { - MeshroomApp.addRecentProjectFile(currentFile.toString()) - } if (mainStack.currentItem instanceof Homepage) { mainStack.push("Application.qml") } + if (_reconstruction.loadUrl(currentFile)) { + MeshroomApp.addRecentProjectFile(currentFile.toString()) + } } }