Skip to content
Snippets Groups Projects
Commit 383154be authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

we always show ft request window in 0.8 release

parent f7657c48
No related branches found
No related tags found
No related merge requests found
......@@ -736,17 +736,20 @@ class Interface:
if not gajim.contacts[account].has_key(jid):
return
file_props = array[1]
if gajim.config.get('notify_on_new_message'):
# check if we should be notified
instance = dialogs.PopupNotificationWindow(self,
_('File Transfer Request'), jid, account, 'file', file_props)
self.roster.popup_notification_windows.append(instance)
elif (gajim.connections[account].connected in (2, 3)
and gajim.config.get('autopopup')) or \
gajim.config.get('autopopupaway'):
contact = gajim.contacts[account][jid][0]
self.windows['file_transfers'].show_file_request(
account, contact, file_props)
# FIXME: in 0.9 we'll have a queue for that
# if gajim.config.get('notify_on_new_message'):
# # check if we should be notified
# instance = dialogs.PopupNotificationWindow(self,
# _('File Transfer Request'), jid, account, 'file', file_props)
# self.roster.popup_notification_windows.append(instance)
# elif (gajim.connections[account].connected in (2, 3)
# and gajim.config.get('autopopup')) or \
# gajim.config.get('autopopupaway'):
# contact = gajim.contacts[account][jid][0]
# self.windows['file_transfers'].show_file_request(
# account, contact, file_props)
self.windows['file_transfers'].show_file_request(
account, contact, file_props)
def handle_event_file_progress(self, account, file_props):
self.windows['file_transfers'].set_progress(file_props['type'],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment