From 8b49afb0f3f2713391fc8204a5291c8d49685fa3 Mon Sep 17 00:00:00 2001 From: Don Archer Date: Thu, 4 Aug 2016 19:58:51 -0700 Subject: [PATCH] add to queue working properly --- FirebaseKaraoke/FirebaseController.cs | 3 ++- FirebaseKaraoke/FirebaseKaraoke.csproj | 5 +++-- FirebaseKaraoke/app.config | 11 +++++++++++ FirebaseKaraoke/packages.config | 2 +- KaraokePlayer/App.config | 8 ++++---- KaraokePlayer/KaraokePlayer.csproj | 4 ++-- KaraokePlayer/packages.config | 2 +- 7 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 FirebaseKaraoke/app.config diff --git a/FirebaseKaraoke/FirebaseController.cs b/FirebaseKaraoke/FirebaseController.cs index f5b3c5b..03a2656 100644 --- a/FirebaseKaraoke/FirebaseController.cs +++ b/FirebaseKaraoke/FirebaseController.cs @@ -168,7 +168,8 @@ namespace KaraokePlayer.Classes { var response = _client.Get(CurrentSongPath); var item = response.ResultAs(); - if (item != null) + if (item == null) return; + if (CurrentSong == null || CurrentSong.Path != item.Song.Path) { CurrentSong = item.Song; _songChanged(new ControllerSongChangedEventArgs(item.Song)); diff --git a/FirebaseKaraoke/FirebaseKaraoke.csproj b/FirebaseKaraoke/FirebaseKaraoke.csproj index 17aca06..e1996b2 100644 --- a/FirebaseKaraoke/FirebaseKaraoke.csproj +++ b/FirebaseKaraoke/FirebaseKaraoke.csproj @@ -46,8 +46,8 @@ ..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll True - - ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll + + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True @@ -76,6 +76,7 @@ + diff --git a/FirebaseKaraoke/app.config b/FirebaseKaraoke/app.config new file mode 100644 index 0000000..8460dd4 --- /dev/null +++ b/FirebaseKaraoke/app.config @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/FirebaseKaraoke/packages.config b/FirebaseKaraoke/packages.config index 45a2770..84a4b1d 100644 --- a/FirebaseKaraoke/packages.config +++ b/FirebaseKaraoke/packages.config @@ -5,5 +5,5 @@ - + \ No newline at end of file diff --git a/KaraokePlayer/App.config b/KaraokePlayer/App.config index e89053c..4fc68df 100644 --- a/KaraokePlayer/App.config +++ b/KaraokePlayer/App.config @@ -6,9 +6,9 @@ - - - + + + @@ -27,7 +27,7 @@ - + diff --git a/KaraokePlayer/KaraokePlayer.csproj b/KaraokePlayer/KaraokePlayer.csproj index bc5670f..a9c6bba 100644 --- a/KaraokePlayer/KaraokePlayer.csproj +++ b/KaraokePlayer/KaraokePlayer.csproj @@ -73,8 +73,8 @@ ..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll True - - ..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll + + ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll True diff --git a/KaraokePlayer/packages.config b/KaraokePlayer/packages.config index c63e4c1..e0afe2b 100644 --- a/KaraokePlayer/packages.config +++ b/KaraokePlayer/packages.config @@ -6,5 +6,5 @@ - + \ No newline at end of file