diff options
Diffstat (limited to 'src/app/runtime.rs')
| -rw-r--r-- | src/app/runtime.rs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/app/runtime.rs b/src/app/runtime.rs index cb2e5712..815701b7 100644 --- a/src/app/runtime.rs +++ b/src/app/runtime.rs @@ -336,18 +336,10 @@ impl App { } fn agent_panel_has_animation(&self) -> bool { - match self.state.agent_panel_scope { - crate::app::state::AgentPanelScope::CurrentWorkspace => self - .state - .active - .and_then(|idx| self.state.workspaces.get(idx)) - .is_some_and(|ws| ws.has_working_pane(&self.state.terminals)), - crate::app::state::AgentPanelScope::AllWorkspaces => self - .state - .workspaces - .iter() - .any(|ws| ws.has_working_pane(&self.state.terminals)), - } + self.state + .workspaces + .iter() + .any(|ws| ws.has_working_pane(&self.state.terminals)) } pub(crate) fn tick_selection_autoscroll(&mut self, now: Instant) { |
