aboutsummaryrefslogtreecommitdiff
path: root/src/event/handler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/handler.rs')
-rwxr-xr-xsrc/event/handler.rs12
1 files changed, 1 insertions, 11 deletions
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