1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:43:22 +08:00

Resolve @iiSaLMaN 's suggested changes

This commit is contained in:
Craftplacer 2019-10-01 18:15:40 +02:00
parent 2ac5e0bfa0
commit 5f399add82
2 changed files with 5 additions and 9 deletions

View File

@ -13,6 +13,7 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.MathUtils;
using osu.Framework.Screens;
using osu.Game.Configuration;
using osu.Game.Graphics.Containers;
using osu.Game.Overlays;
using osu.Game.Overlays.Notifications;
@ -36,6 +37,9 @@ namespace osu.Game.Tests.Visual.Gameplay
[Resolved]
private AudioManager audioManager { get; set; }
[Resolved]
private SessionStatics sessionStatics { get; set; }
/// <summary>
/// Sets the input manager child to a new test player loader container instance.
/// </summary>
@ -137,7 +141,7 @@ namespace osu.Game.Tests.Visual.Gameplay
/// <param name="assert">The function to be invoked and checked</param>
private void addVolumeSteps(string volumeName, Action beforeLoad, Action afterLoad, Func<bool> assert)
{
AddStep("reset notification lock", PlayerLoader.ResetNotificationLock);
AddStep("reset notification lock", () => sessionStatics.GetBindable<bool>(Static.MutedAudioNotificationShownOnce).Value = false);
AddStep("load player", () => ResetPlayer(false, beforeLoad, afterLoad));
AddUntilStep("wait for player", () => player.IsLoaded);

View File

@ -536,13 +536,5 @@ namespace osu.Game.Screens.Play
};
}
}
/// <summary>
/// Sets <see cref="muteWarningShownOnce"/> to false, reserved for testing.
/// </summary>
public static void ResetNotificationLock()
{
muteWarningShownOnce = false;
}
}
}