docs update
This commit is contained in:
parent
e28e625b42
commit
f2ec40e8e3
5 changed files with 40 additions and 4 deletions
|
@ -242,7 +242,7 @@ class NetworkSettings(CenteredWidget):
|
|||
old_data = str(settings['ipv6_enabled']) + str(settings['udp_enabled']) + str(bool(settings['proxy_type']))
|
||||
new_data = str(self.ipv.isChecked()) + str(self.udp.isChecked()) + str(self.proxy.isChecked())
|
||||
changed = old_data != new_data
|
||||
if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != settings['proxy_port']):
|
||||
if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != unicode(settings['proxy_port'])):
|
||||
changed = True
|
||||
if changed:
|
||||
settings['ipv6_enabled'] = self.ipv.isChecked()
|
||||
|
|
|
@ -456,7 +456,7 @@ class Profile(Contact, Singleton):
|
|||
"""
|
||||
while len(message) > TOX_MAX_MESSAGE_LENGTH:
|
||||
size = TOX_MAX_MESSAGE_LENGTH * 4 / 5
|
||||
last_part = message[size:]
|
||||
last_part = message[size:TOX_MAX_MESSAGE_LENGTH]
|
||||
if ' ' in last_part:
|
||||
index = last_part.index(' ')
|
||||
elif ',' in last_part:
|
||||
|
@ -465,7 +465,7 @@ class Profile(Contact, Singleton):
|
|||
index = last_part.index('.')
|
||||
else:
|
||||
index = TOX_MAX_MESSAGE_LENGTH - size
|
||||
index += size
|
||||
index += size + 1
|
||||
self._tox.friend_send_message(number, message_type, message[:index])
|
||||
message = message[index:]
|
||||
self._tox.friend_send_message(number, message_type, message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue