we always show ft request window in 0.8 release

This commit is contained in:
Yann Leboulanger 2005-08-16 15:24:50 +00:00
parent f7657c4892
commit 383154becf
1 changed files with 14 additions and 11 deletions

View File

@ -736,17 +736,20 @@ class Interface:
if not gajim.contacts[account].has_key(jid): if not gajim.contacts[account].has_key(jid):
return return
file_props = array[1] file_props = array[1]
if gajim.config.get('notify_on_new_message'): # FIXME: in 0.9 we'll have a queue for that
# check if we should be notified # if gajim.config.get('notify_on_new_message'):
instance = dialogs.PopupNotificationWindow(self, # # check if we should be notified
_('File Transfer Request'), jid, account, 'file', file_props) # instance = dialogs.PopupNotificationWindow(self,
self.roster.popup_notification_windows.append(instance) # _('File Transfer Request'), jid, account, 'file', file_props)
elif (gajim.connections[account].connected in (2, 3) # self.roster.popup_notification_windows.append(instance)
and gajim.config.get('autopopup')) or \ # elif (gajim.connections[account].connected in (2, 3)
gajim.config.get('autopopupaway'): # and gajim.config.get('autopopup')) or \
contact = gajim.contacts[account][jid][0] # gajim.config.get('autopopupaway'):
self.windows['file_transfers'].show_file_request( # contact = gajim.contacts[account][jid][0]
account, contact, file_props) # 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): def handle_event_file_progress(self, account, file_props):
self.windows['file_transfers'].set_progress(file_props['type'], self.windows['file_transfers'].set_progress(file_props['type'],