Fix dialog visibility

This commit is contained in:
angelblue05 2018-04-12 04:29:33 -05:00
parent 4701d5b7e8
commit cd5a7580b0
4 changed files with 11 additions and 11 deletions

View file

@ -129,9 +129,9 @@ class LoginConnect(xbmcgui.WindowXMLDialog):
self.error = state self.error = state
self.error_msg.setLabel(message) self.error_msg.setLabel(message)
self.error_toggle.setVisibleCondition('True') self.error_toggle.setVisibleCondition('true')
def _disable_error(self): def _disable_error(self):
self.error = None self.error = None
self.error_toggle.setVisibleCondition('False') self.error_toggle.setVisibleCondition('false')

View file

@ -143,9 +143,9 @@ class LoginManual(xbmcgui.WindowXMLDialog):
self.error = state self.error = state
self.error_msg.setLabel(message) self.error_msg.setLabel(message)
self.error_toggle.setVisibleCondition('True') self.error_toggle.setVisibleCondition('true')
def _disable_error(self): def _disable_error(self):
self.error = None self.error = None
self.error_toggle.setVisibleCondition('False') self.error_toggle.setVisibleCondition('false')

View file

@ -106,7 +106,7 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
log.info('Server Id selected: %s', selected_id) log.info('Server Id selected: %s', selected_id)
if self._connect_server(selected_id): if self._connect_server(selected_id):
self.message_box.setVisibleCondition('False') self.message_box.setVisibleCondition('false')
self.close() self.close()
def onClick(self, control): def onClick(self, control):
@ -127,12 +127,12 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
server = self.connect_manager.getServerInfo(server_id) server = self.connect_manager.getServerInfo(server_id)
self.message.setLabel("%s %s..." % (lang(30610), server['Name'])) self.message.setLabel("%s %s..." % (lang(30610), server['Name']))
self.message_box.setVisibleCondition('True') self.message_box.setVisibleCondition('true')
self.busy.setVisibleCondition('True') self.busy.setVisibleCondition('true')
result = self.connect_manager.connectToServer(server) result = self.connect_manager.connectToServer(server)
if result['State'] == CONN_STATE['Unavailable']: if result['State'] == CONN_STATE['Unavailable']:
self.busy.setVisibleCondition('False') self.busy.setVisibleCondition('false')
self.message.setLabel(lang(30609)) self.message.setLabel(lang(30609))
return False return False
else: else:

View file

@ -132,15 +132,15 @@ class ServerManual(xbmcgui.WindowXMLDialog):
def _message(self, message): def _message(self, message):
self.error_msg.setLabel(message) self.error_msg.setLabel(message)
self.error_toggle.setVisibleCondition('True') self.error_toggle.setVisibleCondition('true')
def _error(self, state, message): def _error(self, state, message):
self.error = state self.error = state
self.error_msg.setLabel(message) self.error_msg.setLabel(message)
self.error_toggle.setVisibleCondition('True') self.error_toggle.setVisibleCondition('true')
def _disable_error(self): def _disable_error(self):
self.error = None self.error = None
self.error_toggle.setVisibleCondition('False') self.error_toggle.setVisibleCondition('false')