mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-19 22:50:31 +00:00
Removed sonarqube issues tagged clumsy
This commit is contained in:
parent
da21f49928
commit
98c86304fe
9 changed files with 42 additions and 65 deletions
|
@ -87,16 +87,15 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
|
|||
if action in (ACTION_BACK, ACTION_PREVIOUS_MENU, ACTION_PARENT_DIR):
|
||||
self.close()
|
||||
|
||||
if action in (ACTION_SELECT_ITEM, ACTION_MOUSE_LEFT_CLICK):
|
||||
if action in (ACTION_SELECT_ITEM, ACTION_MOUSE_LEFT_CLICK) and self.getFocusId() == LIST:
|
||||
|
||||
if self.getFocusId() == LIST:
|
||||
server = self.list_.getSelectedItem()
|
||||
selected_id = server.getProperty('id')
|
||||
LOG.info('Server Id selected: %s', selected_id)
|
||||
server = self.list_.getSelectedItem()
|
||||
selected_id = server.getProperty('id')
|
||||
LOG.info('Server Id selected: %s', selected_id)
|
||||
|
||||
if self._connect_server(selected_id):
|
||||
self.message_box.setVisibleCondition('false')
|
||||
self.close()
|
||||
if self._connect_server(selected_id):
|
||||
self.message_box.setVisibleCondition('false')
|
||||
self.close()
|
||||
|
||||
def onClick(self, control):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue