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:
parent
1ce33cb6da
commit
31baf0086f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user