From d1e45e27deeb0c4164c670a5f007b383f932deed Mon Sep 17 00:00:00 2001 From: Remco Smits Date: Sun, 7 Dec 2025 22:59:38 +0100 Subject: [PATCH] debugger: Fix UI would not update when you select the `Current State` option (#44340) This PR fixes that the `Current State` option inside the history dropdown does not updating the UI. This was because we didn't send the `SessionEvent::HistoricSnapshotSelected` event in the reset case. This was just a mistake. **After** https://github.com/user-attachments/assets/6df5f990-fd66-4c6b-9633-f85b422fb95a cc @Anthony-Eid Release Notes: - N/A --- crates/project/src/debugger/session.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/project/src/debugger/session.rs b/crates/project/src/debugger/session.rs index 65e903e178f6bb010c34315c1c5d5a7bf9cbe44e..82a139ea242889f89c3a6a0c6d41e83e00cbfec2 100644 --- a/crates/project/src/debugger/session.rs +++ b/crates/project/src/debugger/session.rs @@ -1454,11 +1454,7 @@ impl Session { } self.selected_snapshot_index = ix; - - if ix.is_some() { - cx.emit(SessionEvent::HistoricSnapshotSelected); - } - + cx.emit(SessionEvent::HistoricSnapshotSelected); cx.notify(); }