mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 21:56:26 +02:00
Merge pull request #8382 from ctrlaltdavid/21024
Disable Asset Browser's right-click popup menu if in HMD mode
This commit is contained in:
commit
1834b035d7
1 changed files with 7 additions and 6 deletions
|
@ -521,14 +521,15 @@ ScrollingWindow {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
acceptedButtons: Qt.RightButton
|
acceptedButtons: Qt.RightButton
|
||||||
onClicked: {
|
onClicked: {
|
||||||
var index = treeView.indexAt(mouse.x, mouse.y);
|
if (!HMD.active) { // Popup only displays properly on desktop
|
||||||
|
var index = treeView.indexAt(mouse.x, mouse.y);
|
||||||
treeView.selection.setCurrentIndex(index, 0x0002);
|
treeView.selection.setCurrentIndex(index, 0x0002);
|
||||||
|
contextMenu.currentIndex = index;
|
||||||
contextMenu.currentIndex = index;
|
contextMenu.popup();
|
||||||
contextMenu.popup();
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
HifiControls.ContentSection {
|
HifiControls.ContentSection {
|
||||||
id: uploadSection
|
id: uploadSection
|
||||||
|
|
Loading…
Reference in a new issue