don't show StatusPill without a difficulty

This commit is contained in:
Unknown 2018-09-13 13:49:57 +02:00
parent 638a2e5ba8
commit 04853b8c83
1 changed files with 5 additions and 2 deletions

View File

@ -261,8 +261,11 @@ private void load(LocalisationEngine localisation)
}
}
};
artistBinding.ValueChanged += value => setMetadata(metadata.Source);
artistBinding.TriggerChange();
artistBinding.BindValueChanged(value => setMetadata(metadata.Source), true);
// no difficulty means it can't have a status to show
if (beatmapInfo.Version == null)
StatusPill.Hide();
}
private void setMetadata(string source)