mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Remove simple localisable .ToString()
calls
This commit is contained in:
@ -68,7 +68,7 @@ namespace osu.Game.Overlays.Settings
|
||||
{
|
||||
set
|
||||
{
|
||||
bool hasValue = !string.IsNullOrWhiteSpace(value.ToString());
|
||||
bool hasValue = value != default;
|
||||
|
||||
if (warningText == null)
|
||||
{
|
||||
@ -80,7 +80,7 @@ namespace osu.Game.Overlays.Settings
|
||||
}
|
||||
|
||||
warningText.Alpha = hasValue ? 1 : 0;
|
||||
warningText.Text = value.ToString(); // TODO: Remove ToString() call after TextFlowContainer supports localisation (see https://github.com/ppy/osu-framework/issues/4636).
|
||||
warningText.Text = value ?? default;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user