Skip to content

Commit fffeb8d

Browse files
[ui] Project: Use simpe click to open project and remove the redundant Projects menu item.
1 parent c92368d commit fffeb8d

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

meshroom/ui/qml/Application.qml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -737,14 +737,6 @@ Page {
737737
}
738738
}
739739
}
740-
Action {
741-
id: projectsPage
742-
text: "Projects ..."
743-
onTriggered: {
744-
const homepage = mainStack.replace("Homepage.qml")
745-
homepage.setCurrentTab("Projects")
746-
}
747-
}
748740
MenuSeparator { }
749741
Action {
750742
id: saveAction

meshroom/ui/qml/Homepage.qml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -376,22 +376,24 @@ Page {
376376
hoverEnabled: true
377377

378378
onClicked: function(mouse) {
379+
379380
if (mouse.button === Qt.RightButton) {
380381

381382
if (!modelData["path"]) { return }
382383

383384
projectContextMenu.x = mouse.x
384385
projectContextMenu.y = mouse.y
385386
projectContextMenu.open()
387+
return
386388

387389
}
388-
}
389-
390-
onDoubleClicked: {
390+
391391
if (!modelData["path"]) {
392392
initFileDialogFolder(openFileDialog)
393393
openFileDialog.open()
394-
} else {
394+
}
395+
396+
else {
395397
// Open project
396398
mainStack.push("Application.qml")
397399
if (_reconstruction.load(modelData["path"])) {
@@ -400,7 +402,9 @@ Page {
400402
MeshroomApp.removeRecentProjectFile(modelData["path"])
401403
}
402404
}
405+
403406
}
407+
404408
}
405409

406410
Menu {

0 commit comments

Comments
 (0)