1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Make APIChangelogEntry.Major a non-nullable property

This commit is contained in:
Lucas A 2019-06-08 09:45:34 +02:00
parent 342e39776a
commit e8c73f3127
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace osu.Game.Online.API.Requests.Responses
public string MessageHtml { get; set; }
[JsonProperty("major")]
public bool? Major { get; set; }
public bool Major { get; set; }
[JsonProperty("created_at")]
public DateTimeOffset? CreatedAt { get; set; }

View File

@ -74,7 +74,7 @@ namespace osu.Game.Overlays.Changelog
Margin = new MarginPadding { Vertical = 5 },
};
var entryColour = entry.Major != null && (bool)entry.Major ? colours.YellowLight : Color4.White;
var entryColour = entry.Major ? colours.YellowLight : Color4.White;
title.AddIcon(FontAwesome.Solid.Check, t =>
{