Skip to content

Commit

Permalink
More UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Jul 25, 2021
1 parent bb3848a commit dbc674e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions UI/BSSFlowCoordinator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,10 @@ public static void Close(bool immediately = false, bool downloadAbortConfim = tr
XD.FunnyMono(SelectedSongView.songPreviewPlayer)?.CrossfadeToDefault();
} catch { }

foreach(var x in filterView.GetComponentsInChildren<ModalView>())
x.Hide(false);

foreach(var x in songListView.GetComponentsInChildren<ModalView>())
foreach(var x in filterView.GetComponentsInChildren<ModalView>().Concat(songListView.GetComponentsInChildren<ModalView>())) {
x.Hide(false);
x.gameObject.SetActive(false);
}

if(downloadHistoryView.hasUnloadedDownloads)
SongCore.Loader.Instance.RefreshSongs(false);
Expand Down
2 changes: 1 addition & 1 deletion UI/DownloadHistoryView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public bool IsInAnyOfStates(DownloadStatus states) {
}

public void ResetIfFailed() {
if(status != DownloadStatus.Failed || retries != RETRY_COUNT)
if(status != DownloadStatus.Failed || retries < RETRY_COUNT)
return;

status = DownloadStatus.Queued;
Expand Down

0 comments on commit dbc674e

Please sign in to comment.