Remove redundant visibility changes

This commit is contained in:
Dean Herbert 2017-08-22 22:48:50 +09:00
parent 9f69aa9082
commit 71af30d222
1 changed files with 1 additions and 4 deletions

View File

@ -45,7 +45,6 @@ private void load(NotificationOverlay notification, OsuColour colours, TextureSt
Origin = Anchor.BottomCentre;
Alpha = 0;
State = Visibility.Hidden;
Children = new Drawable[]
{
@ -103,11 +102,9 @@ protected override void LoadComplete()
{
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);