rmptui08c4f41
fix crash when using playlist append
+2 −1
1 file changed
- M src/event/pl_append_keys.rs +2 −1
| @@ -52,7 +52,8 @@ pub fn hande_pl_append_keys(key_event: KeyEvent, app: &mut App) -> AppResult<()> | |||
| 52 | 52 | } | |
| 53 | 53 | } | |
| 54 | 54 | } else if t == "directory" { | |
| 55 | − | for (t, f) in app.conn.conn.listfiles(f)?.iter() { | |
| 55 | + | let file = format!("{}/{}", app.browser.path, f); | |
| 56 | + | for (t, f) in app.conn.conn.listfiles(&file)?.iter() { | |
| 56 | 57 | // dir_vec.push((t, f)); | |
| 57 | 58 | if t == "file" | |
| 58 | 59 | && Path::new(&f).has_extension(&[ | |