mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 19:12:54 +08:00
Change ShowMoreButton hide logic
This commit is contained in:
parent
91f7bc6d45
commit
4a444face1
@ -181,10 +181,12 @@ namespace osu.Game.Overlays.Comments
|
|||||||
moreButton.Current.Value = response.TopLevelCount - loadedTopLevelComments;
|
moreButton.Current.Value = response.TopLevelCount - loadedTopLevelComments;
|
||||||
moreButton.IsLoading = false;
|
moreButton.IsLoading = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
moreButton.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
commentCounter.Current.Value = response.Total;
|
commentCounter.Current.Value = response.Total;
|
||||||
|
|
||||||
moreButton.FadeTo(response.HasMore ? 1 : 0);
|
|
||||||
}, loadCancellation.Token);
|
}, loadCancellation.Token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user