bug fixes
This commit is contained in:
parent
de5082ef38
commit
50a0850c6e
@ -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
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user