Mercurial > libervia-desktop
diff 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 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv Sun Mar 01 22:11:25 2020 +0100 +++ b/cagou/plugins/plugin_wid_chat.kv Sat Mar 07 00:05:49 2020 +0100 @@ -57,7 +57,6 @@ orientation: "vertical" SizedImage: id: image - source: root.data.get('preview') or root.data.get('path') or root.data.get('url') anim_delay: -1