From 4ff07bf7897790e49bbb22cf34efe1ed941f4734 Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Tue, 1 Apr 2025 15:33:30 -0400 Subject: [PATCH] Fix restore button (#27866) ID collision! Release Notes: - N/A --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index 4ba1fce1282e02044afa190eb2f88e82d1cafc5f..b08f1dd1cfe683fe6ea3f900eb396502c46035e4 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -20359,7 +20359,7 @@ fn render_diff_hunk_controls( }) }) .child( - Button::new("restore", "Restore") + Button::new(("restore", row as u64), "Restore") .tooltip({ let focus_handle = editor.focus_handle(cx); move |window, cx| {