1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Optional idle tracker

This commit is contained in:
Dean Herbert 2018-12-27 20:17:27 +09:00
parent 1ce33cb6da
commit 31baf0086f

View File

@ -103,10 +103,12 @@ namespace osu.Game.Screens.Multi
private readonly IBindable<bool> isIdle = new BindableBool();
[BackgroundDependencyLoader]
[BackgroundDependencyLoader(true)]
private void load(IdleTracker idleTracker)
{
api.Register(this);
if (idleTracker != null)
isIdle.BindTo(idleTracker.IsIdle);
}