diff --git a/meshroom/ui/qml/Application.qml b/meshroom/ui/qml/Application.qml index 74824749ca..21810f4801 100644 --- a/meshroom/ui/qml/Application.qml +++ b/meshroom/ui/qml/Application.qml @@ -1184,7 +1184,7 @@ Page { text: MaterialIcons.more_vert font.pointSize: 11 padding: 2 - onClicked: graphEditorMenu.open() + onClicked: graphEditorMenu.visible ? graphEditorMenu.close() : graphEditorMenu.open() checkable: true checked: graphEditorMenu.visible Menu { diff --git a/meshroom/ui/qml/GraphEditor/NodeEditor.qml b/meshroom/ui/qml/GraphEditor/NodeEditor.qml index 7a43db7f6a..b912a8f01f 100644 --- a/meshroom/ui/qml/GraphEditor/NodeEditor.qml +++ b/meshroom/ui/qml/GraphEditor/NodeEditor.qml @@ -125,7 +125,7 @@ Panel { text: MaterialIcons.more_vert font.pointSize: 11 padding: 2 - onClicked: settingsMenu.open() + onClicked: settingsMenu.visible ? settingsMenu.close() : settingsMenu.open() checkable: true checked: settingsMenu.visible Menu { diff --git a/meshroom/ui/qml/ImageGallery/ImageGallery.qml b/meshroom/ui/qml/ImageGallery/ImageGallery.qml index 751415c2b7..477856f105 100644 --- a/meshroom/ui/qml/ImageGallery/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery/ImageGallery.qml @@ -137,7 +137,7 @@ Panel { padding: 2 checkable: true checked: galleryMenu.visible - onClicked: galleryMenu.open() + onClicked: galleryMenu.visible ? galleryMenu.close() : galleryMenu.open() Menu { id: galleryMenu y: parent.height diff --git a/meshroom/ui/qml/Viewer/SequencePlayer.qml b/meshroom/ui/qml/Viewer/SequencePlayer.qml index 6caf7b226d..c44fbe43ae 100644 --- a/meshroom/ui/qml/Viewer/SequencePlayer.qml +++ b/meshroom/ui/qml/Viewer/SequencePlayer.qml @@ -288,7 +288,7 @@ FloatingPane { text: MaterialIcons.settings font.pointSize: 11 padding: 2 - onClicked: infoMenu.open() + onClicked: infoMenu.visible ? infoMenu.close() : infoMenu.open() checkable: true checked: infoMenu.visible diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index 577f4c9572..a60e7cdf2b 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -113,7 +113,7 @@ Item { padding: 2 checkable: true checked: imageViewerMenu.visible - onClicked: imageViewerMenu.open() + onClicked: imageViewerMenu.visible ? imageViewerMenu.close() : imageViewerMenu.open() Menu { id: imageViewerMenu y: parent.height