From ed705c0cbc089374c91b97568e993e3279744298 Mon Sep 17 00:00:00 2001 From: Rocky Shi Date: Wed, 24 Dec 2025 01:28:04 +1300 Subject: [PATCH] Conditionally display debugger panel icon based on a setting (#45544) Closes [#ISSUE](https://github.com/zed-industries/zed/issues/45506) Release Notes: - Conditionally display the debugger panel icon based on a setting to avoid too many error logs --- crates/debugger_ui/src/debugger_panel.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rs index 35ce80d3f64e362735c1c020363dbbfc2703a101..0b91b9f28559ac6d7f991b7a0b9822820004148d 100644 --- a/crates/debugger_ui/src/debugger_panel.rs +++ b/crates/debugger_ui/src/debugger_panel.rs @@ -1579,8 +1579,10 @@ impl Panel for DebugPanel { Some(proto::PanelId::DebugPanel) } - fn icon(&self, _window: &Window, _cx: &App) -> Option { - Some(IconName::Debug) + fn icon(&self, _window: &Window, cx: &App) -> Option { + DebuggerSettings::get_global(cx) + .button + .then_some(IconName::Debug) } fn icon_tooltip(&self, _window: &Window, cx: &App) -> Option<&'static str> {