Fix for user selection when all users are hidden

This commit is contained in:
angelblue05 2016-09-10 18:41:47 -05:00
parent 964e9eccef
commit bd89228097

View file

@ -134,6 +134,12 @@ class ConnectManager(object):
server_address = connectionmanager.getServerAddress(server, server['LastConnectionMode'])
users = self.emby.getUsers(server_address)
if not users:
try:
return self.login_manual(server_address)
except RuntimeError:
raise RuntimeError("No user selected")
dialog = UsersConnect("script-emby-connect-users.xml", *XML_PATH)
dialog.set_server(server_address)
dialog.set_users(users)