Fix unused float handle mouse function, pub mod appstate

Fix unnecessary usage of pub mod for appstate and resolve unused float handle mouse function
This commit is contained in:
Jeevitha Kannan K S 2024-11-30 18:01:43 +05:30
parent ab7a67087d
commit 468ba6e34d
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ mod floating_text;
mod hint; mod hint;
mod root; mod root;
mod running_command; mod running_command;
pub mod state; mod state;
mod theme; mod theme;
#[cfg(feature = "tips")] #[cfg(feature = "tips")]

View File

@ -480,7 +480,7 @@ impl AppState {
} }
match &mut self.focus { match &mut self.focus {
Focus::FloatingWindow(float) => { Focus::FloatingWindow(float) => {
float.content.handle_mouse_event(event); float.handle_mouse_event(event);
} }
Focus::ConfirmationPrompt(confirm) => { Focus::ConfirmationPrompt(confirm) => {
confirm.content.handle_mouse_event(event); confirm.content.handle_mouse_event(event);