From 50a0850c6ef670f6769fc695e3b4a4925c1d4f03 Mon Sep 17 00:00:00 2001 From: ingvar1995 Date: Tue, 5 Apr 2016 00:12:02 +0300 Subject: [PATCH] bug fixes --- src/callbacks.py | 2 +- src/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 0338314..7a8e82b 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -156,7 +156,7 @@ def tox_file_recv(window, tray): if not window.isActiveWindow(): friend = profile.get_friend_by_number(friend_number) if settings['notifications']: - invoke_in_main_thread(tray_notification, 'File from ' + friend.name, file_name, tray) + invoke_in_main_thread(tray_notification, 'File from ' + friend.name, file_name, tray, window) if settings['sound_notifications']: sound_notification(SOUND_NOTIFICATION['FILE_TRANSFER']) else: # AVATAR diff --git a/src/settings.py b/src/settings.py index 78854b1..28cd522 100644 --- a/src/settings.py +++ b/src/settings.py @@ -81,7 +81,7 @@ class Settings(Singleton, dict): app_settings['active_profile'].remove(ProfileHelper.get_path() + self.name + '.tox') data = json.dumps(app_settings) with open(path, 'w') as fl: - fl.write(data) + fl.write(data) def set_active_profile(self): path = Settings.get_default_path() + 'toxygen.json'