summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-12-02 00:26:51 +0100
committerLibravatar GitHub <noreply@github.com>2019-12-02 00:26:51 +0100
commitbe0df0669ed2dbb06b6d955b25abacd59a3ca634 (patch)
treed80152932a2570044740fd801c7fc3598d137108 /native
parente648de560dd7372626dfce33bf508e9d41da6409 (diff)
parentf9abee391d894e4bec38a0fc28b267e27caea271 (diff)
downloadiced-be0df0669ed2dbb06b6d955b25abacd59a3ca634.tar.gz
iced-be0df0669ed2dbb06b6d955b25abacd59a3ca634.tar.bz2
iced-be0df0669ed2dbb06b6d955b25abacd59a3ca634.zip
Merge pull request #101 from Shootertrex/fix/image-widget-hashing
Added path to image hash so it updates when path changes
Diffstat (limited to '')
-rw-r--r--native/src/widget/image.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/native/src/widget/image.rs b/native/src/widget/image.rs
index 4c588c9d..bcfc40b2 100644
--- a/native/src/widget/image.rs
+++ b/native/src/widget/image.rs
@@ -100,6 +100,7 @@ where
}
fn hash_layout(&self, state: &mut Hasher) {
+ self.path.hash(state);
self.width.hash(state);
self.height.hash(state);
}