1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

Merge pull request #3930 from peppy/fix-args-crash

Fix crash on startup when specifying --no-version-overlay
This commit is contained in:
Dean Herbert 2018-12-27 20:17:42 +09:00 committed by GitHub
commit 88d9e40f31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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