Mercurial > libervia-desktop-kivy
changeset 214:6a98d70a3a66
file sharing: display a message when not sharing device has been found
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 May 2018 15:54:50 +0200 |
parents | 423d462ea739 |
children | 254481ba2bae |
files | cagou/plugins/plugin_wid_file_sharing.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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"""