Primitivus: fixed redraw on profile change in profile manager
This commit is contained in:
parent
a49ef39806
commit
9410e81551
1 changed files with 2 additions and 1 deletions
|
|
@ -108,14 +108,15 @@ class ProfileManager(urwid.WidgetWrap):
|
|||
def onProfileChange(self, list_wid):
|
||||
def setJID(jabberID):
|
||||
self.login_wid.set_edit_text(jabberID)
|
||||
self.host.redraw()
|
||||
def setPassword(password):
|
||||
self.pass_wid.set_edit_text(password)
|
||||
self.host.redraw()
|
||||
|
||||
profile_name = list_wid.getSelectedValue()
|
||||
if profile_name:
|
||||
self.host.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile_name, callback=setJID, errback=self.getParamError)
|
||||
self.host.bridge.asyncGetParamA("Password", "Connection", profile_key=profile_name, callback=setPassword, errback=self.getParamError)
|
||||
self.host.redraw()
|
||||
|
||||
def onConnectProfile(self, button):
|
||||
profile_name = self.list_profile.getSelectedValue()
|
||||
|
|
|
|||
Loading…
Reference in a new issue