Add icon_tooltip for panel buttons rather than using persistent name

This commit is contained in:
Julia 2024-01-02 17:56:19 -05:00
parent 2b9570e3e7
commit 14066c4f0e
7 changed files with 36 additions and 2 deletions

View file

@ -1281,6 +1281,10 @@ impl Panel for AssistantPanel {
Some(Icon::Ai)
}
fn icon_tooltip(&self, _cx: &WindowContext) -> Option<&'static str> {
Some("Assistant Panel")
}
fn toggle_action(&self) -> Box<dyn Action> {
Box::new(ToggleFocus)
}