desktop, android: fix image not appearing in view when received (#3504)
* desktop, android: fix image not appearing in view when received * change to KeyChangeEffect
This commit is contained in:
parent
6a9a67db14
commit
acaa597c90
@ -164,6 +164,12 @@ fun CIImageView(
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
KeyChangeEffect(file) {
|
||||
if (res.value == null) {
|
||||
res.value = imageAndFilePath(file)
|
||||
}
|
||||
}
|
||||
}
|
||||
val loaded = res.value
|
||||
if (loaded != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user