From 56e4591d6fa631a4a148e435f352419944ab2f85 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 15 Feb 2022 10:49:03 +0100 Subject: [PATCH] Fix panic caused by reusing the same handler for diagnostic status --- crates/diagnostics/src/items.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/diagnostics/src/items.rs b/crates/diagnostics/src/items.rs index 80291cde3d..7949fe952c 100644 --- a/crates/diagnostics/src/items.rs +++ b/crates/diagnostics/src/items.rs @@ -57,7 +57,7 @@ impl View for DiagnosticSummary { let theme = &self.settings.borrow().theme.project_diagnostics; let in_progress = self.in_progress; - MouseEventHandler::new::(0, cx, |_, _| { + MouseEventHandler::new::(cx.view_id(), cx, |_, _| { if in_progress { Label::new( "Checking... ".to_string(),