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:
parent
342e39776a
commit
e8c73f3127
@ -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; }
|
||||
|
@ -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 =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user