From 3b54f5a82818024944af0c26927b350976fbc7d0 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Thu, 28 Apr 2016 11:30:58 +0300 Subject: [PATCH] version 0.1 --- docs/contributing.md | 22 ++++++++++++++++++++++ src/profile.py | 11 +++++++++++ src/util.py | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 docs/contributing.md diff --git a/docs/contributing.md b/docs/contributing.md new file mode 100644 index 0000000..32b835e --- /dev/null +++ b/docs/contributing.md @@ -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. \ No newline at end of file diff --git a/src/profile.py b/src/profile.py index 488f054..eee80d9 100644 --- a/src/profile.py +++ b/src/profile.py @@ -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() diff --git a/src/util.py b/src/util.py index 4169c7d..0a63288 100644 --- a/src/util.py +++ b/src/util.py @@ -3,7 +3,7 @@ import time from platform import system -program_version = '0.0.4' +program_version = '0.1' def log(data):