Author Topic: Nested/2nd level submenus?  (Read 2759 times)

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Nested/2nd level submenus?
« on: August 26, 2013, 02:36:05 PM »
Is it possible to nest submenus, or is this a planned feature?

Some menus I have in mind with a lot of choices, for example for choosing hotkey functions, simply don't seem appropriately placed in the main menu hierarchy, and having submenu-submenus would allow splitting up large item lists into more logical pieces.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Nested/2nd level submenus?
« Reply #1 on: August 26, 2013, 02:39:35 PM »
Right now it's not possible, and to implement it, it requires quite a bit of hacking in menu.c. It's not quite trivial, but not impossible either.

File manager rebuilds the entire submenu when navigating subfolders.

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: Nested/2nd level submenus?
« Reply #2 on: August 26, 2013, 02:50:15 PM »
Right now it's not possible, and to implement it, it requires quite a bit of hacking in menu.c. It's not quite trivial, but not impossible either.

If so, it'd be great if you'd sooner or later came around to it, imho it's a useful addition and it's surprising that just adding another child menu entry currently refuses to work.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Nested/2nd level submenus?
« Reply #3 on: August 26, 2013, 03:40:03 PM »
Yeah, the front-end data structure is fine, just the backend doesn't know how to handle it.