version 0.1
This commit is contained in:
parent
1cacde34f9
commit
3b54f5a828
3 changed files with 34 additions and 1 deletions
22
docs/contributing.md
Normal file
22
docs/contributing.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
|
||||
|
||||
#Issues
|
||||
|
||||
Help us find all bugs in Toxygen! Please provide following info:
|
||||
|
||||
- OS
|
||||
- Toxygen version
|
||||
- Toxygen executable info - .py or precompiled binary
|
||||
- Steps to reproduce the bug
|
||||
|
||||
Want to see new feature in Toxygen? [Open issue!](https://github.com/xveduk/toxygen/issues)
|
||||
|
||||
#Pull requests
|
||||
|
||||
Developer? Feel free to open pull request. Our dev team is small so we glad to get help.
|
||||
Don't know what to do? Impove UI, fix [issues](https://github.com/xveduk/toxygen/issues) or implement features from our TODO list.
|
||||
You can find our TODO's in code and [here](/README.md)
|
||||
|
||||
#Translations
|
||||
|
||||
Help us translate Toxygen! Translate can be created using pyside-lupdate and QT Linguist.
|
|
@ -833,6 +833,8 @@ class Profile(Contact, Singleton):
|
|||
|
||||
elif auto:
|
||||
path = settings['auto_accept_path'] or curr_directory()
|
||||
if not os.path.isdir(path):
|
||||
path = curr_directory()
|
||||
new_file_name, i = file_name, 1
|
||||
while os.path.isfile(path + '/' + new_file_name): # file with same name already exists
|
||||
if '.' in file_name: # has extension
|
||||
|
@ -1046,6 +1048,9 @@ class Profile(Contact, Singleton):
|
|||
self.stop_call(num, False)
|
||||
|
||||
def incoming_call(self, audio, video, friend_number):
|
||||
"""
|
||||
Incoming call from friend. Only audio is supported now
|
||||
"""
|
||||
friend = self.get_friend_by_number(friend_number)
|
||||
self._incoming_calls.add(friend_number)
|
||||
if friend_number == self.get_active_number():
|
||||
|
@ -1061,6 +1066,9 @@ class Profile(Contact, Singleton):
|
|||
self._call_widget.show()
|
||||
|
||||
def accept_call(self, friend_number, audio, video):
|
||||
"""
|
||||
Accept incoming call with audio or video
|
||||
"""
|
||||
self._call.accept_call(friend_number, audio, video)
|
||||
self._screen.active_call()
|
||||
self._incoming_calls.remove(friend_number)
|
||||
|
@ -1068,6 +1076,9 @@ class Profile(Contact, Singleton):
|
|||
del self._call_widget
|
||||
|
||||
def stop_call(self, friend_number, by_friend):
|
||||
"""
|
||||
Stop call with friend
|
||||
"""
|
||||
if friend_number in self._incoming_calls:
|
||||
self._incoming_calls.remove(friend_number)
|
||||
self._screen.call_finished()
|
||||
|
|
|
@ -3,7 +3,7 @@ import time
|
|||
from platform import system
|
||||
|
||||
|
||||
program_version = '0.0.4'
|
||||
program_version = '0.1'
|
||||
|
||||
|
||||
def log(data):
|
||||
|
|
Loading…
Reference in a new issue