From d7d3e208b8ea63eb3232d9db2362fc44ecfcc246 Mon Sep 17 00:00:00 2001 From: Remco Smits Date: Sat, 26 Oct 2024 11:39:09 +0200 Subject: [PATCH] Clean up --- crates/debugger_ui/src/stack_frame_list.rs | 3 +-- crates/debugger_ui/src/variable_list.rs | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/debugger_ui/src/stack_frame_list.rs b/crates/debugger_ui/src/stack_frame_list.rs index 4c9fa5651928a..165020e8eed7b 100644 --- a/crates/debugger_ui/src/stack_frame_list.rs +++ b/crates/debugger_ui/src/stack_frame_list.rs @@ -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(); }) })); } diff --git a/crates/debugger_ui/src/variable_list.rs b/crates/debugger_ui/src/variable_list.rs index 79298c5d0482d..ae85b295265de 100644 --- a/crates/debugger_ui/src/variable_list.rs +++ b/crates/debugger_ui/src/variable_list.rs @@ -472,8 +472,6 @@ impl VariableList { this.build_entries(true, true, cx); this.fetch_variables_task.take(); - - cx.notify(); }) })); } @@ -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;