Skip to content

Commit

Permalink
Check for env changes in LensWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Sep 16, 2020
1 parent 84182db commit da80b74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion druid/src/lens/lens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ where
let lens = &self.lens;
lens.with(old_data, |old_data| {
lens.with(data, |data| {
if ctx.has_requested_update() || !old_data.same(data) {
if ctx.has_requested_update() || !old_data.same(data) || ctx.env_changed() {
inner.update(ctx, old_data, data, env);
}
})
Expand Down

0 comments on commit da80b74

Please sign in to comment.