From dc3f561de36fdfc283ebe0b6cf49f09f3bdc9282 Mon Sep 17 00:00:00 2001 From: krolxon Date: Sat, 1 Jun 2024 15:58:53 +0530 Subject: fix #8 --- src/event/handler.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/event/handler.rs') diff --git a/src/event/handler.rs b/src/event/handler.rs index 29da20c..b8c1a80 100755 --- a/src/event/handler.rs +++ b/src/event/handler.rs @@ -141,17 +141,7 @@ pub fn handle_key_events(key_event: KeyEvent, app: &mut App) -> AppResult<()> { // Update MPD database KeyCode::Char('U') => { app.conn.conn.rescan()?; - - // Update the songs list - app.conn.songs_filenames = app - .conn - .conn - .listall()? - .into_iter() - .map(|x| x.file) - .collect(); - - app.browser.update_directory(&mut app.conn)?; + app.should_update_song_list = true; } // Search for songs -- cgit v1.2.3