From e8af79669b59b4e318915a70b090812d41976b20 Mon Sep 17 00:00:00 2001 From: nyx Date: Thu, 10 Oct 2024 06:02:18 -0400 Subject: [PATCH] fix compilation errors --- tui/src/state.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tui/src/state.rs b/tui/src/state.rs index 9ed61771..90ed3f56 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -2,7 +2,7 @@ use crate::{ confirmation::{ConfirmPrompt, ConfirmStatus}, filter::{Filter, SearchAction}, float::{Float, FloatContent}, - floating_text::FloatingText, + floating_text::{FloatingText, FloatingTextMode}, hint::{create_shortcut_list, Shortcut}, running_command::RunningCommand, theme::Theme, @@ -657,7 +657,7 @@ impl AppState { if let Some(list_node) = self.get_selected_node() { let mut preview_title = "[Preview] - ".to_string(); preview_title.push_str(list_node.name.as_str()); - if let Some(preview) = FloatingText::from_command(&list_node.command, preview_title) { + if let Some(preview) = FloatingText::from_command(&list_node.command, FloatingTextMode::Preview) { self.spawn_float(preview, 80, 80); } } @@ -665,7 +665,7 @@ impl AppState { fn enable_description(&mut self) { if let Some(command_description) = self.get_selected_description() { - let description = FloatingText::new(command_description, "Command Description"); + let description = FloatingText::new(command_description, FloatingTextMode::Description); self.spawn_float(description, 80, 80); } } @@ -731,7 +731,7 @@ impl AppState { fn toggle_task_list_guide(&mut self) { self.spawn_float( - FloatingText::new(ACTIONS_GUIDE.to_string(), "Important Actions Guide"), + FloatingText::new(ACTIONS_GUIDE.to_string(), FloatingTextMode::ActionsGuide), 80, 80, );