diff src/cagou/kv/cagou_widget.kv @ 60:35abe494e6c7

core: bridge selection + improvments for android - bridge specified in sat.conf is now imported, in the same way as for backend - when loading, a label showing "Loading please wait" is shown - postInit is now call when backend is ready - avoid division by zero when icon is not available in cagou_widget.kv - twisted reactor is used
author Goffi <goffi@goffi.org>
date Sun, 04 Dec 2016 18:16:10 +0100
parents bd3ecac18870
children 953ddf817b8a
line wrap: on
line diff
--- a/src/cagou/kv/cagou_widget.kv	Sun Oct 02 13:29:37 2016 +0200
+++ b/src/cagou/kv/cagou_widget.kv	Sun Dec 04 18:16:10 2016 +0100
@@ -29,7 +29,7 @@
         size_hint: None, 1
         source: root.plugin_info['icon_medium']
         allow_stretch: True
-        width: self.texture_size[0]*self.height/self.texture_size[1]
+        width: self.texture_size[0]*self.height/(self.texture_size[1] or 1)
     Label:
         size_hint: 1, 1
         text: root.plugin_info['name']
@@ -52,7 +52,7 @@
             source: root.plugin_info['icon_small']
             size_hint: None, 1
             allow_stretch: True
-            width: self.texture_size[0]*self.height/self.texture_size[1]
+            width: self.texture_size[0]*self.height/(self.texture_size[1] or 1)
         TextInput:
             id: header_input
             multiline: False