From cf60642f3978776b72547cdc1c4701f8bca9a32a Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Fri, 1 Dec 2023 11:49:55 -0500 Subject: [PATCH] Remove unnecessary identifier --- crates/project_panel/src/project_panel.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 875d4d4f83..553303e90d 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -1633,13 +1633,9 @@ impl View for ProjectPanel { if let Some(window) = cx.active_window() { window.read_with(cx, |cx| { - let identifier = if self.filename_editor.is_focused(cx) { - "editing" - } else { - "not_editing" + if !self.filename_editor.is_focused(cx) { + keymap.add_identifier("not_editing"); }; - - keymap.add_identifier(identifier); }); } }