mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Invert data length checks for consistency
This commit is contained in:
@ -92,15 +92,15 @@ namespace osu.Game.Overlays.Profile
|
|||||||
|
|
||||||
private void redrawGraph()
|
private void redrawGraph()
|
||||||
{
|
{
|
||||||
if (!(data?.Length > 1))
|
if (data?.Length > 1)
|
||||||
{
|
{
|
||||||
HideGraph();
|
graph.DefaultValueCount = data.Length;
|
||||||
|
graph.Values = data.Select(pair => GetDataPointHeight(pair.Value)).ToArray();
|
||||||
|
ShowGraph();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
graph.DefaultValueCount = data.Length;
|
HideGraph();
|
||||||
graph.Values = data.Select(pair => GetDataPointHeight(pair.Value)).ToArray();
|
|
||||||
ShowGraph();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -120,11 +120,13 @@ namespace osu.Game.Overlays.Profile
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!(data?.Length > 1))
|
if (data?.Length > 1)
|
||||||
return null;
|
{
|
||||||
|
var (key, value) = data[dataIndex];
|
||||||
|
return GetTooltipContent(key, value);
|
||||||
|
}
|
||||||
|
|
||||||
var (key, value) = data[dataIndex];
|
return null;
|
||||||
return GetTooltipContent(key, value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user