1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 08:52:55 +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,11 +103,13 @@ namespace osu.Game.Screens.Multi
private readonly IBindable<bool> isIdle = new BindableBool();
[BackgroundDependencyLoader]
[BackgroundDependencyLoader(true)]
private void load(IdleTracker idleTracker)
{
api.Register(this);
isIdle.BindTo(idleTracker.IsIdle);
if (idleTracker != null)
isIdle.BindTo(idleTracker.IsIdle);
}
protected override void LoadComplete()