mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:52:57 +08:00
Allow player to not pause on focus loss
This commit is contained in:
parent
c403dede20
commit
256a579de0
@ -47,6 +47,8 @@ namespace osu.Game.Screens.Play
|
||||
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 @@ namespace osu.Game.Screens.Play
|
||||
base.Update();
|
||||
|
||||
// eagerly pause when we lose window focus (if we are locally playing).
|
||||
if (!Game.IsActive.Value)
|
||||
if (PauseOnFocusLost && !Game.IsActive.Value)
|
||||
Pause();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user