private bool Next() { if (openedProject != null) { MessagePopup.PopupMessage(playlistWidget as Gtk.Widget, MessageType.Error, Catalog.GetString("Please, close the opened project to play the playlist.")); Stop(); return(false); } if (!playlist.HasNext()) { Stop(); return(false); } var plNode = playlist.Next(); playlistWidget.SetActivePlay(plNode, playlist.GetCurrentIndex()); if (!plNode.Valid) { return(Next()); } LoadPlaylistPlay(plNode); return(true); }
private bool Next() { if (!playlist.HasNext()) { Stop(); return(false); } var plNode = playlist.Next(); if (!plNode.Valid) { return(Next()); } LoadPlaylistPlay(plNode); return(true); }