1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Fix crash on startup when specifying --no-version-overlay

This commit is contained in:
Dean Herbert 2018-12-27 20:08:16 +09:00
parent 00fc5197b1
commit 4a4bc8955d

View File

@ -70,10 +70,12 @@ namespace osu.Desktop
{
case Intro _:
case MainMenu _:
versionManager.State = Visibility.Visible;
if (versionManager != null)
versionManager.State = Visibility.Visible;
break;
default:
versionManager.State = Visibility.Hidden;
if (versionManager != null)
versionManager.State = Visibility.Hidden;
break;
}
}