From cf40a53105dec25abb819f9a256d1160dfb0f629 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 17 Sep 2016 20:48:40 -0500 Subject: [PATCH] Fix dialog focus for server list Default to focus buttons rather than possible empty list if there's no servers returned from server discovery --- resources/lib/dialogs/serverconnect.py | 3 ++- resources/skins/default/1080i/script-emby-connect-server.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/dialogs/serverconnect.py b/resources/lib/dialogs/serverconnect.py index 8a39b09b..541ca6f9 100644 --- a/resources/lib/dialogs/serverconnect.py +++ b/resources/lib/dialogs/serverconnect.py @@ -85,7 +85,8 @@ class ServerConnect(xbmcgui.WindowXMLDialog): if not self.emby_connect: # Change connect user self.getControl(EMBY_CONNECT).setLabel("[UPPERCASE][B]"+lang(30618)+"[/B][/UPPERCASE]") - self.setFocus(self.list_) + if self.servers: + self.setFocus(self.list_) @classmethod def _add_listitem(cls, label, server_id, server_type): diff --git a/resources/skins/default/1080i/script-emby-connect-server.xml b/resources/skins/default/1080i/script-emby-connect-server.xml index 01fc9141..bc751e8c 100644 --- a/resources/skins/default/1080i/script-emby-connect-server.xml +++ b/resources/skins/default/1080i/script-emby-connect-server.xml @@ -1,6 +1,6 @@ - 155 + 205 0 dialogeffect