Fix dialog overlay playing double samples on show/hide

This commit is contained in:
Dean Herbert
2018-06-21 16:47:05 +09:00
parent 4c14f547dd
commit a2fa55c426
2 changed files with 10 additions and 4 deletions

View File

@ -30,6 +30,8 @@ namespace osu.Game.Overlays
State = Visibility.Visible;
}
protected override bool PlaySamplesOnStateChange => false;
private void onDialogOnStateChanged(VisibilityContainer dialog, Visibility v)
{
if (v != Visibility.Hidden) return;