1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Invert hide logic for readability

This commit is contained in:
Dean Herbert 2020-11-24 13:12:04 +09:00
parent 44ca67c534
commit 82640418ba

View File

@ -43,14 +43,14 @@ namespace osu.Game.Overlays.Profile.Sections.Historical
{
var values = GetValues(e.NewValue);
if (values?.Length > 1)
if (values == null || values.Length <= 1)
{
chart.Values = fillZeroValues(values);
Show();
Hide();
return;
}
Hide();
chart.Values = fillZeroValues(values);
Show();
}
/// <summary>