mirror of
https://github.com/ppy/osu
synced 2025-01-06 06:10:04 +00:00
Ensure test game is always active
This commit is contained in:
parent
d1158acb82
commit
cb7ae413fe
@ -158,6 +158,14 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
Dependencies.Get<SessionStatics>().SetValue(Static.MutedAudioNotificationShownOnce, true);
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
// when running in visual tests and the window loses focus, we generally don't want the game to pause.
|
||||
((Bindable<bool>)IsActive).Value = true;
|
||||
}
|
||||
}
|
||||
|
||||
public class TestLoader : Loader
|
||||
|
Loading…
Reference in New Issue
Block a user