# HG changeset patch # User Goffi # Date 1527256490 -7200 # Node ID 6a98d70a3a660fc7915dc5e1452ee7b9b03d8cd6 # Parent 423d462ea739db636887a587bf4b64d0ccdf22c8 file sharing: display a message when not sharing device has been found diff -r 423d462ea739 -r 6a98d70a3a66 cagou/plugins/plugin_wid_file_sharing.py --- a/cagou/plugins/plugin_wid_file_sharing.py Fri May 25 15:10:37 2018 +0200 +++ b/cagou/plugins/plugin_wid_file_sharing.py Fri May 25 15:54:50 2018 +0200 @@ -343,6 +343,12 @@ entity_jid, Identities(entity_ids)) self.layout.add_widget(item) + if not entities_services and not entities_own and not entities_roster: + self.layout.add_widget(Label( + size_hint=(1, 1), + halign='center', + text_size=self.size, + text=_(u"No sharing device found"))) def discover_devices(self): """Looks for devices handling file "File Information Sharing" and display them"""