Add icon_tooltip
for panel buttons rather than using persistent name
This commit is contained in:
parent
2b9570e3e7
commit
14066c4f0e
7 changed files with 36 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue