Allow player to not pause on focus loss

This commit is contained in:
Dean Herbert 2019-03-26 13:17:00 +09:00
parent c403dede20
commit 256a579de0
1 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,8 @@ public class Player : ScreenWithBeatmapBackground
public bool AllowLeadIn { get; set; } = true;
public bool AllowResults { get; set; } = true;
public bool PauseOnFocusLost { get; set; } = true;
private Bindable<bool> mouseWheelDisabled;
private readonly Bindable<bool> storyboardReplacesBackground = new Bindable<bool>();
@ -372,7 +374,7 @@ protected override void Update()
base.Update();
// eagerly pause when we lose window focus (if we are locally playing).
if (!Game.IsActive.Value)
if (PauseOnFocusLost && !Game.IsActive.Value)
Pause();
}