mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 05:52:56 +08:00
Add inline comment and improve linq robustness
This commit is contained in:
parent
d17c431faf
commit
5ad8dc316f
@ -51,8 +51,12 @@ namespace osu.Game.Tournament
|
|||||||
Margin = new MarginPadding(40),
|
Margin = new MarginPadding(40),
|
||||||
});
|
});
|
||||||
|
|
||||||
var m = (MouseHandler)host.AvailableInputHandlers.Single(t => t is MouseHandler);
|
// in order to have the OS mouse cursor visible, relative mode needs to be disabled.
|
||||||
m.UseRelativeMode.Value = false;
|
// can potentially be removed when https://github.com/ppy/osu-framework/issues/4309 is resolved.
|
||||||
|
var mouseHandler = host.AvailableInputHandlers.OfType<MouseHandler>().FirstOrDefault();
|
||||||
|
|
||||||
|
if (mouseHandler != null)
|
||||||
|
mouseHandler.UseRelativeMode.Value = false;
|
||||||
|
|
||||||
loadingSpinner.Show();
|
loadingSpinner.Show();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user