Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Oct 26, 2024
1 parent ed321ab commit d7d3e20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions crates/debugger_ui/src/stack_frame_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ impl StackFrameList {
task.await?;
}

this.update(&mut cx, |this, cx| {
this.update(&mut cx, |this, _| {
this.fetch_stack_frames_task.take();
cx.notify();
})
}));
}
Expand Down
6 changes: 2 additions & 4 deletions crates/debugger_ui/src/variable_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,6 @@ impl VariableList {
this.build_entries(true, true, cx);

this.fetch_variables_task.take();

cx.notify();
})
}));
}
Expand Down Expand Up @@ -592,13 +590,13 @@ impl VariableList {
});

let Some(state) = self.set_variable_state.take() else {
return self.build_entries(false, true, cx);
return;
};

if new_variable_value == state.value
|| state.stack_frame_id != self.stack_frame_list.read(cx).current_stack_frame_id()
{
return self.build_entries(false, true, cx);
return cx.notify();
}

let client_id = self.client_id;
Expand Down

0 comments on commit d7d3e20

Please sign in to comment.