diff --git a/WindowsMediaController/Main.cs b/WindowsMediaController/Main.cs index 55e1f89..fe99099 100644 --- a/WindowsMediaController/Main.cs +++ b/WindowsMediaController/Main.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using Windows.Media.Control; @@ -129,7 +128,7 @@ private void CurrentSessionChanged(GlobalSystemMediaTransportControlsSessionMana private MediaSession GetFocusedSession(GlobalSystemMediaTransportControlsSessionManager sender) { var currentSession = sender.GetCurrentSession(); - + MediaSession currentMediaSession = null; if (currentSession != null && _CurrentMediaSessions.TryGetValue(currentSession.SourceAppUserModelId, out MediaSession mediaSession)) {