fix crash when using playlist append
This commit is contained in:
parent
8f41c6e1d0
commit
3e3ae64c72
|
|
@ -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(&[
|
||||
|
|
|
|||
Reference in New Issue