1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-29 03:59:54 +08:00

Remove redundant visibility changes

This commit is contained in:
Dean Herbert
2017-08-22 22:48:50 +09:00
Unverified
parent 9f69aa9082
commit 71af30d222
+1 -4
View File
@@ -45,7 +45,6 @@ namespace osu.Desktop.Overlays
Origin = Anchor.BottomCentre;
Alpha = 0;
State = Visibility.Hidden;
Children = new Drawable[]
{
@@ -103,11 +102,9 @@ namespace osu.Desktop.Overlays
{
base.LoadComplete();
State = Visibility.Visible;
var version = game.Version;
var lastVersion = config.Get<string>(OsuSetting.Version);
if (char.IsNumber(version[0]) && version != lastVersion)
if (game.IsDeployedBuild && version != lastVersion)
{
config.Set(OsuSetting.Version, version);