comparison src/cagou/core/menu.py @ 98:4d8c122b86a6

menu (upload): send transfer (i.e. P2P transfer) is now working
author Goffi <goffi@goffi.org>
date Thu, 29 Dec 2016 23:47:10 +0100
parents 5d2289127bb7
children
comparison
equal deleted inserted replaced
97:5d2289127bb7 98:4d8c122b86a6
228 wid = None 228 wid = None
229 external = plug_info.get('external', False) 229 external = plug_info.get('external', False)
230 def onTransferCb(file_path, cleaning_cb=None): 230 def onTransferCb(file_path, cleaning_cb=None):
231 if not external: 231 if not external:
232 self._closeUI(wid) 232 self._closeUI(wid)
233 self.callback(file_path, cleaning_cb) 233 self.callback(
234 file_path,
235 cleaning_cb,
236 transfer_type = C.TRANSFER_UPLOAD if self.ids['upload_btn'].state == "down" else C.TRANSFER_SEND)
234 wid = plug_info['factory'](plug_info, onTransferCb, self.cancel_cb, self.profiles) 237 wid = plug_info['factory'](plug_info, onTransferCb, self.cancel_cb, self.profiles)
235 if not external: 238 if not external:
236 G.host.showExtraUI(wid) 239 G.host.showExtraUI(wid)