Skip to content

Commit

Permalink
fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx committed Oct 10, 2024
1 parent e432865 commit e8af796
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -657,15 +657,15 @@ 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);
}
}
}

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);
}
}
Expand Down Expand Up @@ -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,
);
Expand Down

0 comments on commit e8af796

Please sign in to comment.