1
0
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:
Andrei Zavatski 2020-01-31 09:46:35 +03:00
parent 91f7bc6d45
commit 4a444face1

View File

@ -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);
} }