bug fixes

This commit is contained in:
ingvar1995 2016-04-05 00:12:02 +03:00
parent de5082ef38
commit 50a0850c6e
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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'