mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 22:30:53 +08:00
Simplify assignment by using an auto property
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user