mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00:00
Move logic into updateDisplay.
This commit is contained in:
parent
794e4663d8
commit
6690d1bd72
@ -235,9 +235,7 @@ namespace osu.Game.Overlays
|
||||
|
||||
void preferUnicode_changed(object sender, EventArgs e)
|
||||
{
|
||||
if (current != null)
|
||||
updateDisplay(current, TransformDirection.None);
|
||||
//else: we can show something in correspond laguage
|
||||
updateDisplay(current, TransformDirection.None);
|
||||
}
|
||||
|
||||
private void workingChanged(object sender = null, EventArgs e = null)
|
||||
@ -320,7 +318,7 @@ namespace osu.Game.Overlays
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (beatmap.Beatmap == null)
|
||||
if (beatmap?.Beatmap == null)
|
||||
//todo: we may need to display some default text here (currently in the constructor).
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user