GoCubs;245245 Wrote: 
> The debugging output shows a good menu hash so I'm stumped... any
> suggestions?
> 

I just realized that you are having the same problem as I had. The
menuStyle parameter should be on the parent menu, not on the menu
itself.

So I think something like this on the parent menu should work if you
like the presets sub menus to display icons.

Code:
--------------------
    
  Slim::Control::Request::addDispatch(['siriuspresets'],[1, 1, 0, 
\&siriusPresetsMenu]);
  
        my $menu = {
                text   => Slim::Utils::Strings::string(getDisplayName()),
                count  => 1,
                offset => 0,
                weight => 15,
                window => { titleStyle => 'mymusic' },
                item_loop => [
                        {
                                text    => 'My Presets',
                                actions => {
                                        do => {
                                                player => 0,
                                                cmd    => [ 'siriuspresets' ],
                                        }
                                },
                                window => { menuStyle => 'album' },
                        },
                ],
        };
  
        Slim::Control::Jive::registerPluginMenu($menu, 'mymusic');
--------------------


-- 
erland

Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=40230

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to