mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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:
parent
7f0110bc47
commit
cf40a53105
2 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<window>
|
||||
<defaultcontrol always="true">155</defaultcontrol>
|
||||
<defaultcontrol always="true">205</defaultcontrol>
|
||||
<zorder>0</zorder>
|
||||
<include>dialogeffect</include>
|
||||
<controls>
|
||||
|
|
Loading…
Reference in a new issue