Fix dialog focus for server list

Default to focus buttons rather than possible empty list if there's no
servers returned from server discovery
This commit is contained in:
angelblue05 2016-09-17 20:48:40 -05:00
parent 7f0110bc47
commit cf40a53105
2 changed files with 3 additions and 2 deletions

View file

@ -85,7 +85,8 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
if not self.emby_connect: # Change connect user if not self.emby_connect: # Change connect user
self.getControl(EMBY_CONNECT).setLabel("[UPPERCASE][B]"+lang(30618)+"[/B][/UPPERCASE]") self.getControl(EMBY_CONNECT).setLabel("[UPPERCASE][B]"+lang(30618)+"[/B][/UPPERCASE]")
self.setFocus(self.list_) if self.servers:
self.setFocus(self.list_)
@classmethod @classmethod
def _add_listitem(cls, label, server_id, server_type): def _add_listitem(cls, label, server_id, server_type):

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<window> <window>
<defaultcontrol always="true">155</defaultcontrol> <defaultcontrol always="true">205</defaultcontrol>
<zorder>0</zorder> <zorder>0</zorder>
<include>dialogeffect</include> <include>dialogeffect</include>
<controls> <controls>