new function: stop playing after current song

This commit is contained in:
Andrzej Rybczak
2009-03-01 11:26:39 +01:00
parent 27535e133c
commit b9cbacebff
5 changed files with 16 additions and 1 deletions

View File

@@ -1201,7 +1201,12 @@ int main(int argc, char *argv[])
}
else if (Keypressed(input, Key.StartSearching))
{
if (myScreen == mySearcher)
if (myScreen == myPlaylist && myPlaylist->isPlaying())
{
Config.stop_after_current_song = !Config.stop_after_current_song;
ShowMessage("Stop playing after current song: %s", Config.stop_after_current_song ? "on" : "off");
}
else if (myScreen == mySearcher)
{
mySearcher->Main()->Highlight(SearchEngine::SearchButton);
mySearcher->Main()->Highlighting(0);