From 31baf0086fa0096b07a4ce23c9464b3ee2c944ee Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 27 Dec 2018 20:17:27 +0900 Subject: [PATCH] Optional idle tracker --- osu.Game/Screens/Multi/Multiplayer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Multi/Multiplayer.cs b/osu.Game/Screens/Multi/Multiplayer.cs index 6b1c614ff6..ce0eddbee3 100644 --- a/osu.Game/Screens/Multi/Multiplayer.cs +++ b/osu.Game/Screens/Multi/Multiplayer.cs @@ -103,11 +103,13 @@ namespace osu.Game.Screens.Multi private readonly IBindable 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()