mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix dialog visibility
This commit is contained in:
parent
4701d5b7e8
commit
cd5a7580b0
4 changed files with 11 additions and 11 deletions
|
@ -129,9 +129,9 @@ class LoginConnect(xbmcgui.WindowXMLDialog):
|
|||
|
||||
self.error = state
|
||||
self.error_msg.setLabel(message)
|
||||
self.error_toggle.setVisibleCondition('True')
|
||||
self.error_toggle.setVisibleCondition('true')
|
||||
|
||||
def _disable_error(self):
|
||||
|
||||
self.error = None
|
||||
self.error_toggle.setVisibleCondition('False')
|
||||
self.error_toggle.setVisibleCondition('false')
|
||||
|
|
|
@ -143,9 +143,9 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
|||
|
||||
self.error = state
|
||||
self.error_msg.setLabel(message)
|
||||
self.error_toggle.setVisibleCondition('True')
|
||||
self.error_toggle.setVisibleCondition('true')
|
||||
|
||||
def _disable_error(self):
|
||||
|
||||
self.error = None
|
||||
self.error_toggle.setVisibleCondition('False')
|
||||
self.error_toggle.setVisibleCondition('false')
|
||||
|
|
|
@ -106,7 +106,7 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
|
|||
log.info('Server Id selected: %s', selected_id)
|
||||
|
||||
if self._connect_server(selected_id):
|
||||
self.message_box.setVisibleCondition('False')
|
||||
self.message_box.setVisibleCondition('false')
|
||||
self.close()
|
||||
|
||||
def onClick(self, control):
|
||||
|
@ -127,12 +127,12 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
|
|||
|
||||
server = self.connect_manager.getServerInfo(server_id)
|
||||
self.message.setLabel("%s %s..." % (lang(30610), server['Name']))
|
||||
self.message_box.setVisibleCondition('True')
|
||||
self.busy.setVisibleCondition('True')
|
||||
self.message_box.setVisibleCondition('true')
|
||||
self.busy.setVisibleCondition('true')
|
||||
result = self.connect_manager.connectToServer(server)
|
||||
|
||||
if result['State'] == CONN_STATE['Unavailable']:
|
||||
self.busy.setVisibleCondition('False')
|
||||
self.busy.setVisibleCondition('false')
|
||||
self.message.setLabel(lang(30609))
|
||||
return False
|
||||
else:
|
||||
|
|
|
@ -132,15 +132,15 @@ class ServerManual(xbmcgui.WindowXMLDialog):
|
|||
def _message(self, message):
|
||||
|
||||
self.error_msg.setLabel(message)
|
||||
self.error_toggle.setVisibleCondition('True')
|
||||
self.error_toggle.setVisibleCondition('true')
|
||||
|
||||
def _error(self, state, message):
|
||||
|
||||
self.error = state
|
||||
self.error_msg.setLabel(message)
|
||||
self.error_toggle.setVisibleCondition('True')
|
||||
self.error_toggle.setVisibleCondition('true')
|
||||
|
||||
def _disable_error(self):
|
||||
|
||||
self.error = None
|
||||
self.error_toggle.setVisibleCondition('False')
|
||||
self.error_toggle.setVisibleCondition('false')
|
||||
|
|
Loading…
Reference in a new issue