primitivus: fixed profileCreate bridge call
This commit is contained in:
parent
0257809292
commit
6378718ddc
2 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ class ProfileManager(QuickProfileManager, urwid.WidgetWrap):
|
|||
def newProfile(self, button, edit):
|
||||
"""Create the profile"""
|
||||
name = edit.get_edit_text()
|
||||
self.host.bridge.createProfile(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure)
|
||||
self.host.bridge.profileCreate(name, callback=lambda: self.newProfileCreated(name), errback=self.profileCreationFailure)
|
||||
|
||||
def newProfileCreated(self, profile):
|
||||
# new profile will be selected, and a selected profile assume the session is started
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ class QuickProfileManager(object):
|
|||
def _getErrorMessage(self, reason):
|
||||
"""Return an error message corresponding to profile creation error
|
||||
|
||||
@param reason (str): reason as returned by createProfile
|
||||
@param reason (str): reason as returned by profileCreate
|
||||
@return (unicode): human readable error message
|
||||
"""
|
||||
if reason == "ConflictError":
|
||||
|
|
|
|||
Loading…
Reference in a new issue