This commit is contained in:
ingvar1995 2016-07-28 23:49:43 +03:00
parent 9ed62d4414
commit e970fbed80
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
class TestToxygen:
def test_main(self):
import toxygen.main
import toxygen.main

View File

@ -1193,6 +1193,7 @@ class Profile(contact.Contact, Singleton):
self._messages.scrollToBottom()
else:
friend.actions = True
# TODO: dict of widgets
self._call_widget = avwidgets.IncomingCallWidget(friend_number, text, friend.name)
self._call_widget.set_pixmap(friend.get_pixmap())
self._call_widget.show()
@ -1219,6 +1220,7 @@ class Profile(contact.Contact, Singleton):
self._screen.call_finished()
self._call.finish_call(friend_number, by_friend) # finish or decline call
if hasattr(self, '_call_widget'):
self._call_widget.close()
del self._call_widget
friend = self.get_friend_by_number(friend_number)
friend.append_message(InfoMessage(text, time.time()))