diff cagou/core/menu.py @ 322:e2b51663d8b8

core, android: new share widget + added Cagou to "share" menu: - new intent filter to add Cagou to share menu for all media types - minimum Kivy version is now 1.11.0 - new "Share" widget to display data to share via SàT and select the target - new core.platform_ module (the suffix "_" avoid trouble with standard "platform" module), for platform specific code. - Android intent are now checked on startup and "on_new_intent" events - if a android.intent.action.SEND action is received (i.e. some data is shared), the "Share" widget is shown - new Cagou.share method to share data using "Share" widget - new Cagou.getAncestorWidget method to easily retrieve an instance of a specific class in a widget's ancestors - ContactList's Avatar and ContactItem widgets have been moved to core.common
author Goffi <goffi@goffi.org>
date Fri, 06 Dec 2019 13:23:03 +0100
parents 772c170b47a9
children b77792cc6d12
line wrap: on
line diff
--- a/cagou/core/menu.py	Fri Dec 06 13:23:03 2019 +0100
+++ b/cagou/core/menu.py	Fri Dec 06 13:23:03 2019 +0100
@@ -312,9 +312,10 @@
                     self._closeUI(wid)
                 self.callback(
                     file_path,
-                    cleaning_cb,
                     transfer_type = (C.TRANSFER_UPLOAD
-                        if self.ids['upload_btn'].state == "down" else C.TRANSFER_SEND))
+                        if self.ids['upload_btn'].state == "down" else C.TRANSFER_SEND),
+                    cleaning_cb=cleaning_cb,
+                )
             wid = plug_info['factory'](plug_info,
                                        onTransferCb,
                                        self.cancel_cb,