internal IEnumerator RefreshButtonFlow() { Loader.Instance.RefreshSongs(); yield return(new WaitUntil(() => Loader.AreSongsLoaded == true)); PlaylistCollectionOverride.refreshPlaylists(); }
internal IEnumerator RefreshButtonFlow() { if (!Loader.AreSongsLoading) { Loader.Instance.RefreshSongs(fullRefresh: false); } yield return(new WaitUntil(() => Loader.AreSongsLoaded == true)); int numPlaylists = PlaylistCollectionOverride.RefreshPlaylists(); _progressBar.enabled = true; _progressBar.ShowMessage(string.Format("\n{0} playlists loaded.", numPlaylists), MESSAGE_TIME); }
internal IEnumerator RefreshButtonFlow() { if (!Loader.AreSongsLoading) { Loader.Instance.RefreshSongs(); } yield return(new WaitUntil(() => Loader.AreSongsLoaded == true)); StartCoroutine(PlaylistCollectionOverride.RefreshPlaylists()); yield return(new WaitWhile(() => !this.ArePlaylistsLoaded || this.ArePlaylistsLoading)); _progressBar.enabled = true; _progressBar.ShowMessage(string.Format("\n{0} playlists loaded.", LoadPlaylistScript.Current.Count), MESSAGE_TIME); }
internal void RefreshButtonFlow() { PlaylistCollectionOverride.refreshPlaylists(); }