From 468ba6e34d31e655b7cc32f5717f931bd033af74 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Sat, 30 Nov 2024 18:01:43 +0530 Subject: [PATCH] Fix unused float handle mouse function, pub mod appstate Fix unnecessary usage of pub mod for appstate and resolve unused float handle mouse function --- tui/src/main.rs | 2 +- tui/src/state.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tui/src/main.rs b/tui/src/main.rs index ee0c3235..76ef584f 100644 --- a/tui/src/main.rs +++ b/tui/src/main.rs @@ -5,7 +5,7 @@ mod floating_text; mod hint; mod root; mod running_command; -pub mod state; +mod state; mod theme; #[cfg(feature = "tips")] diff --git a/tui/src/state.rs b/tui/src/state.rs index cec9cc3c..aee17b97 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -480,7 +480,7 @@ impl AppState { } match &mut self.focus { Focus::FloatingWindow(float) => { - float.content.handle_mouse_event(event); + float.handle_mouse_event(event); } Focus::ConfirmationPrompt(confirm) => { confirm.content.handle_mouse_event(event);