fix crash when using playlist append

This commit is contained in:
krolxon 2024-06-08 00:00:53 +05:30
parent 8f41c6e1d0
commit 3e3ae64c72
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ pub fn hande_pl_append_keys(key_event: KeyEvent, app: &mut App) -> AppResult<()>
}
}
} else if t == "directory" {
for (t, f) in app.conn.conn.listfiles(f)?.iter() {
let file = format!("{}/{}", app.browser.path, f);
for (t, f) in app.conn.conn.listfiles(&file)?.iter() {
// dir_vec.push((t, f));
if t == "file"
&& Path::new(&f).has_extension(&[