mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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,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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue