core (xmlui), plugin file: added action_extra param to deferXMLUI/deferDialog which is merged to the action data dict when actionNew is called
This commit is contained in:
parent
891a4c33af
commit
de85e24577
2 changed files with 21 additions and 4 deletions
|
|
@ -202,6 +202,10 @@ class FilePlugin(object):
|
|||
self.host,
|
||||
_(CONFIRM_OVERWRITE).format(file_path),
|
||||
_(CONFIRM_OVERWRITE_TITLE),
|
||||
action_extra={'meta_from_jid': peer_jid.full(),
|
||||
'meta_type': C.META_TYPE_OVERWRITE,
|
||||
'meta_progress_id': file_data[PROGRESS_ID_KEY]
|
||||
},
|
||||
profile=profile)
|
||||
exists_d.addCallback(check_overwrite)
|
||||
return exists_d
|
||||
|
|
@ -243,6 +247,10 @@ class FilePlugin(object):
|
|||
_(CONFIRM_TITLE),
|
||||
type_=C.XMLUI_DIALOG_FILE,
|
||||
options={C.XMLUI_DATA_FILETYPE: C.XMLUI_DATA_FILETYPE_DIR},
|
||||
action_extra={'meta_from_jid': peer_jid.full(),
|
||||
'meta_type': C.META_TYPE_FILE,
|
||||
'meta_progress_id': file_data[PROGRESS_ID_KEY]
|
||||
},
|
||||
profile=profile)
|
||||
d.addCallback(self._gotConfirmation, peer_jid, transfer_data, file_data, profile)
|
||||
return d
|
||||
|
|
|
|||
Loading…
Reference in a new issue