mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 12:22:56 +08:00
Simplify assignment by using an auto property
This commit is contained in:
parent
58b6acde10
commit
b8a362fcb6
@ -15,14 +15,12 @@ namespace osu.Game.Users.Drawables
|
||||
{
|
||||
private readonly CountryCode countryCode;
|
||||
|
||||
public LocalisableString TooltipText => tooltipText;
|
||||
|
||||
private readonly string tooltipText;
|
||||
public LocalisableString TooltipText { get; }
|
||||
|
||||
public DrawableFlag(CountryCode countryCode)
|
||||
{
|
||||
this.countryCode = countryCode;
|
||||
tooltipText = countryCode == CountryCode.Unknown ? string.Empty : countryCode.GetDescription();
|
||||
TooltipText = countryCode == CountryCode.Unknown ? string.Empty : countryCode.GetDescription();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
|
Loading…
Reference in New Issue
Block a user