docs update
This commit is contained in:
parent
d6b6327545
commit
5b9cce4155
5 changed files with 19 additions and 13 deletions
toxygen
|
@ -63,7 +63,7 @@ class AddContact(CenteredWidget):
|
|||
return
|
||||
self._adding = True
|
||||
profile = Profile.get_instance()
|
||||
send = profile.send_friend_request(self.tox_id.text(), self.message_edit.toPlainText())
|
||||
send = profile.send_friend_request(self.tox_id.text().strip(), self.message_edit.toPlainText())
|
||||
self._adding = False
|
||||
if send is True:
|
||||
# request was successful
|
||||
|
|
|
@ -37,6 +37,7 @@ class PluginSuperClass:
|
|||
|
||||
def __init__(self, name, short_name, tox=None, profile=None, settings=None, encrypt_save=None):
|
||||
"""
|
||||
Constructor. In plugin __init__ should take only 4 last arguments
|
||||
:param name: plugin full name
|
||||
:param short_name: plugin unique short name (length of short name should not exceed MAX_SHORT_NAME_LENGTH)
|
||||
:param tox: tox instance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue