mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-03 11:21:52 +02:00
[ui] Fix click on Category in Node Menu to keep the nodes displayed
This commit is contained in:
parent
9c33c57305
commit
7d93a54b4c
1 changed files with 1 additions and 3 deletions
|
@ -291,8 +291,6 @@ Item {
|
||||||
|
|
||||||
// Hide items that does not match the filter text
|
// Hide items that does not match the filter text
|
||||||
visible: modelData.toLowerCase().indexOf(searchBar.text.toLowerCase()) > -1
|
visible: modelData.toLowerCase().indexOf(searchBar.text.toLowerCase()) > -1
|
||||||
// Reset menu currentIndex if highlighted items gets filtered out
|
|
||||||
onVisibleChanged: if (highlighted) newNodeMenu.currentIndex = 0
|
|
||||||
text: modelData
|
text: modelData
|
||||||
// Forward key events to the search bar to continue typing seamlessly
|
// Forward key events to the search bar to continue typing seamlessly
|
||||||
// even if this delegate took the activeFocus due to mouse hovering
|
// even if this delegate took the activeFocus due to mouse hovering
|
||||||
|
@ -353,7 +351,7 @@ Item {
|
||||||
id: newNodeSubMenu
|
id: newNodeSubMenu
|
||||||
|
|
||||||
Instantiator {
|
Instantiator {
|
||||||
model: newNodeMenu.visible && newNodeSubMenu.activeFocus ? newNodeMenu.parseCategories()[modelData] : undefined
|
model: newNodeMenu.visible ? newNodeMenu.parseCategories()[modelData] : undefined
|
||||||
onObjectAdded: newNodeSubMenu.insertItem(index, object)
|
onObjectAdded: newNodeSubMenu.insertItem(index, object)
|
||||||
onObjectRemoved: newNodeSubMenu.removeItem(object)
|
onObjectRemoved: newNodeSubMenu.removeItem(object)
|
||||||
delegate: menuItemDelegateComponent
|
delegate: menuItemDelegateComponent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue