Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Conditionally display debugger panel icon based on a setting (#45544)
Rocky Shied705c0cbc08
diff --git a/crates/debugger_ui/src/debugger_panel.rs b/crates/debugger_ui/src/debugger_panel.rsindex 35ce80d3f64..0b91b9f2855 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<IconName> {- Some(IconName::Debug)+ fn icon(&self, _window: &Window, cx: &App) -> Option<IconName> {+ DebuggerSettings::get_global(cx)+ .button+ .then_some(IconName::Debug)}fn icon_tooltip(&self, _window: &Window, cx: &App) -> Option<&'static str> {