in your specific case, I'd recommend:

Code:
--------------------
    
  sub scannerExitHandler {
        my ($client,$exittype) = @_;
        $exittype = uc($exittype);
        
        if ($jumptomode) {
                Slim::Buttons::Common::popMode($client);
                $jumptomode = 0;
        } elsif ($exittype eq 'LEFT') {
                Slim::Buttons::Common::popModeRight($client);
                #Slim::Player::Source::gototime($client, $offset, 1);
        } elsif ($exittype eq 'RIGHT') {
                        Slim::Display::Animation::bumpRight($client);
        } else {
                return;
        }
  }
  
--------------------


of course, for your needs, you can even get away with removing
everything in scannerExitHandler aside from
"Slim::Buttons::Common::popMode(shift)" as you sound like you plan to
only ever use this in a way that has it exit on any left or right.

-kdf


-- 
kdf
------------------------------------------------------------------------
kdf's Profile: http://forums.slimdevices.com/member.php?userid=7
View this thread: http://forums.slimdevices.com/showthread.php?t=39114

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

Reply via email to