Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

How to determine if menu contains code reference

$
0
0
> Menu could be nested though ... with the "problem" deeper down so I
> don't think I can use
> ref $menu->{url}
> because it might be in a lower level items[] ... and I wanted to avoid
> writing more code to navigate down through the list.


That's why I would not try to cache the menu structure, but only the
data used by it. It might cost you a few CPU cycles, but not enough to
be worried about.

Viewing all articles
Browse latest Browse all 6235

Trending Articles