Added a scroll to the top thingy and a bit more work on headphones

This commit is contained in:
tidusjar 2016-03-30 13:59:13 +01:00
parent 0429530bf3
commit f7c33d48f4
11 changed files with 151 additions and 13 deletions

View file

@ -170,7 +170,7 @@ namespace PlexRequests.UI.Modules
var users = Api.GetUsers(authToken);
Log.Debug("Plex Users: ");
Log.Debug(users.DumpJson());
var allUsers = users.User?.Where(x => !string.IsNullOrEmpty(x.Username));
var allUsers = users?.User?.Where(x => !string.IsNullOrEmpty(x.Username));
return allUsers != null && allUsers.Any(x => x.Username.Equals(username, StringComparison.CurrentCultureIgnoreCase));
}