bug fixes
This commit is contained in:
parent
de5082ef38
commit
50a0850c6e
2 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ def tox_file_recv(window, tray):
|
||||||
if not window.isActiveWindow():
|
if not window.isActiveWindow():
|
||||||
friend = profile.get_friend_by_number(friend_number)
|
friend = profile.get_friend_by_number(friend_number)
|
||||||
if settings['notifications']:
|
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']:
|
if settings['sound_notifications']:
|
||||||
sound_notification(SOUND_NOTIFICATION['FILE_TRANSFER'])
|
sound_notification(SOUND_NOTIFICATION['FILE_TRANSFER'])
|
||||||
else: # AVATAR
|
else: # AVATAR
|
||||||
|
|
|
@ -81,7 +81,7 @@ class Settings(Singleton, dict):
|
||||||
app_settings['active_profile'].remove(ProfileHelper.get_path() + self.name + '.tox')
|
app_settings['active_profile'].remove(ProfileHelper.get_path() + self.name + '.tox')
|
||||||
data = json.dumps(app_settings)
|
data = json.dumps(app_settings)
|
||||||
with open(path, 'w') as fl:
|
with open(path, 'w') as fl:
|
||||||
fl.write(data)
|
fl.write(data)
|
||||||
|
|
||||||
def set_active_profile(self):
|
def set_active_profile(self):
|
||||||
path = Settings.get_default_path() + 'toxygen.json'
|
path = Settings.get_default_path() + 'toxygen.json'
|
||||||
|
|
Loading…
Reference in a new issue