[nodes] add node categories

This commit is contained in:
ChemicalXandco 2021-02-14 17:03:42 +00:00
parent 3d33134ca9
commit e18f815af9
47 changed files with 58 additions and 10 deletions

View file

@ -228,7 +228,7 @@ Item {
// Dynamically add the menu categories
Instantiator {
model: !(searchBar.text != "") ? Object.keys(newNodeMenu.parseCategories()) : undefined
model: !(searchBar.text != "") ? Object.keys(newNodeMenu.parseCategories()).sort() : undefined
onObjectAdded: newNodeMenu.insertMenu(index+1, object ) // add sub-menu under the search bar
onObjectRemoved: newNodeMenu.removeMenu(object)