Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jun 17, 2024
1 parent d546f1c commit 5a764e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psst-gui/src/widget/remote_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl<T: Data> Widget<T> for RemoteImage<T> {
if let LifeCycle::WidgetAdded = event {
let location = (self.locator)(data, env);
self.image = None;
self.location = location.clone();
self.location = self.location.clone_from(&location);
if let Some(location) = location {
ctx.submit_command(REQUEST_DATA.with(location).to(ctx.widget_id()));
}
Expand All @@ -74,7 +74,7 @@ impl<T: Data> Widget<T> for RemoteImage<T> {
let location = (self.locator)(data, env);
if location != self.location {
self.image = None;
self.location = location.clone();
self.location = self.location.clone_from(&location);
if let Some(location) = location {
ctx.submit_command(REQUEST_DATA.with(location).to(ctx.widget_id()));
}
Expand Down

0 comments on commit 5a764e4

Please sign in to comment.