sub setMode { my $class = shift; my $client = shift; my $method = shift; # Handle requests to exit this mode/plugin by going back to where the user was before they came # here. If you don't this, pressing LEFT will just put you straight back to where you already # are! (try commenting out the following if statement) if ($method eq 'pop') { # Pop the current mode off the mode stack and restore the previous one Slim::Buttons::Common::popMode($client); return; } if (isBlindTest($client)) { Slim::Buttons::Common::pushMode($client, $modeBlindTest); } else { pushMainMenuMode($client); } }