mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 21:13:02 +00:00
Remove hardcoding of "Terminal" string
This commit is contained in:
parent
29f0078084
commit
46efb844af
1 changed files with 1 additions and 2 deletions
|
@ -49,9 +49,8 @@ impl View for TerminalButton {
|
|||
};
|
||||
|
||||
let focused_view = cx.focused_view_id(cx.window_id());
|
||||
// FIXME: Don't hardcode "Terminal" in here
|
||||
let active = focused_view
|
||||
.map(|view| cx.view_ui_name(cx.window_id(), view) == Some("Terminal"))
|
||||
.map(|view| cx.view_ui_name(cx.window_id(), view) == Some(TerminalView::ui_name()))
|
||||
.unwrap_or(false);
|
||||
|
||||
let has_terminals = !project.local_terminal_handles().is_empty();
|
||||
|
|
Loading…
Reference in a new issue