mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:02:55 +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();
|
private readonly IBindable<bool> isIdle = new BindableBool();
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(IdleTracker idleTracker)
|
private void load(IdleTracker idleTracker)
|
||||||
{
|
{
|
||||||
api.Register(this);
|
api.Register(this);
|
||||||
|
|
||||||
|
if (idleTracker != null)
|
||||||
isIdle.BindTo(idleTracker.IsIdle);
|
isIdle.BindTo(idleTracker.IsIdle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user