mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-01 18:31:58 +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
|
||||
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
|
||||
// Forward key events to the search bar to continue typing seamlessly
|
||||
// even if this delegate took the activeFocus due to mouse hovering
|
||||
|
@ -353,7 +351,7 @@ Item {
|
|||
id: newNodeSubMenu
|
||||
|
||||
Instantiator {
|
||||
model: newNodeMenu.visible && newNodeSubMenu.activeFocus ? newNodeMenu.parseCategories()[modelData] : undefined
|
||||
model: newNodeMenu.visible ? newNodeMenu.parseCategories()[modelData] : undefined
|
||||
onObjectAdded: newNodeSubMenu.insertItem(index, object)
|
||||
onObjectRemoved: newNodeSubMenu.removeItem(object)
|
||||
delegate: menuItemDelegateComponent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue