From 067b572245ea79ea3653f18e54d09bb3a842ebc7 Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Sat, 29 Apr 2017 06:28:57 -0300 Subject: [PATCH] Formatting --- osu.Game/Overlays/MusicController.cs | 2 +- osu.Game/Overlays/PlaylistController.cs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index ae3e8d56ff..2bb34957b8 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -184,7 +184,7 @@ namespace osu.Game.Overlays else return; } - if (current.Track.IsRunning) + if (current?.Track?.IsRunning ?? false) current.Track.Stop(); else current.Track.Start(); diff --git a/osu.Game/Overlays/PlaylistController.cs b/osu.Game/Overlays/PlaylistController.cs index 0e87345567..dc3c99beda 100644 --- a/osu.Game/Overlays/PlaylistController.cs +++ b/osu.Game/Overlays/PlaylistController.cs @@ -24,9 +24,9 @@ namespace osu.Game.Overlays { private const float transition_duration = 800; - private Box bg; - private FilterControl filter; - private Playlist list; + private readonly Box bg; + private readonly FilterControl filter; + private readonly Playlist list; public BeatmapSetInfo[] List { @@ -216,7 +216,7 @@ namespace osu.Game.Overlays private class Playlist : Container { - private FillFlowContainer items; + private readonly FillFlowContainer items; private BeatmapSetInfo[] sets = { }; public BeatmapSetInfo[] Sets @@ -299,7 +299,7 @@ namespace osu.Game.Overlays private const float fade_duration = 100; private Color4 currentColour; - private TextAwesome icon; + private readonly TextAwesome icon; private readonly IEnumerable title, artist; public readonly int Index;