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,6 +85,7 @@ 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]")
if self.servers:
self.setFocus(self.list_) self.setFocus(self.list_)
@classmethod @classmethod

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>