Mercurial > libervia-desktop
comparison cagou/plugins/plugin_wid_chat.kv @ 437:b5e6d36fbf9c
chat: set AttachmentImageItem in python instead of kv:
"source" is a StringProperty, and setting it in kv was in some case resulting in a "None"
set, which was leading to a crash when Kivy cache was purged.
It is now set in Python to avoid this problem.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 07 Mar 2020 00:05:49 +0100 |
parents | 977158b56ce6 |
children | ff548846df91 |
comparison
equal
deleted
inserted
replaced
436:036ff0ed7474 | 437:b5e6d36fbf9c |
---|---|
55 size: self.minimum_width, self.minimum_height | 55 size: self.minimum_width, self.minimum_height |
56 image: image | 56 image: image |
57 orientation: "vertical" | 57 orientation: "vertical" |
58 SizedImage: | 58 SizedImage: |
59 id: image | 59 id: image |
60 source: root.data.get('preview') or root.data.get('path') or root.data.get('url') | |
61 anim_delay: -1 | 60 anim_delay: -1 |
62 | 61 |
63 | 62 |
64 <AttachmentImagesCollectionItem>: | 63 <AttachmentImagesCollectionItem>: |
65 cols: 2 | 64 cols: 2 |