core, bridge, frontends: renamed asyncConnect to connect, and added options parameters (not used yet)
This commit is contained in:
parent
6a8102b109
commit
b5f1e45d4e
1 changed files with 34 additions and 29 deletions
|
|
@ -90,7 +90,7 @@ class ProfileManager(object):
|
|||
def _plug_profile_autoconnect(self, value_str):
|
||||
autoconnect = C.bool(value_str)
|
||||
if autoconnect and not self.connected:
|
||||
self.host.asyncConnect(self.profile, callback=lambda dummy: self._plug_profile_afterconnect())
|
||||
self.host.connect(self.profile, callback=lambda dummy: self._plug_profile_afterconnect())
|
||||
else:
|
||||
self._plug_profile_afterconnect()
|
||||
|
||||
|
|
@ -440,7 +440,7 @@ class QuickApp(object):
|
|||
if not self._plugs_in_progress:
|
||||
self.contact_lists.lockUpdate(False)
|
||||
|
||||
def asyncConnect(self, profile, callback=None, errback=None):
|
||||
def connect(self, profile, callback=None, errback=None):
|
||||
if not callback:
|
||||
callback = lambda dummy: None
|
||||
if not errback:
|
||||
|
|
@ -462,7 +462,7 @@ class QuickApp(object):
|
|||
self.launchAction(C.CHANGE_XMPP_PASSWD_ID, {}, profile=profile)
|
||||
else:
|
||||
self.showDialog(message, fullname, 'error')
|
||||
self.bridge.asyncConnect(profile, callback=callback, errback=errback)
|
||||
self.bridge.connect(profile, callback=callback, errback=errback)
|
||||
|
||||
def plug_profiles(self, profiles):
|
||||
"""Tell application which profiles must be used
|
||||
|
|
|
|||
Loading…
Reference in a new issue