rmptui7c318f4
fix #5
+6 −0
1 file changed
- M src/event/pl_append_keys.rs +6 −0
| @@ -18,6 +18,12 @@ pub fn hande_pl_append_keys(key_event: KeyEvent, app: &mut App) -> AppResult<()> | |||
| 18 | 18 | ||
| 19 | 19 | match app.selected_tab { | |
| 20 | 20 | SelectedTab::Queue => { | |
| 21 | + | // Just exit out the menu if no item is selected in the Queue | |
| 22 | + | if app.queue_list.list.is_empty() { | |
| 23 | + | app.playlist_popup = false; | |
| 24 | + | return Ok(()); | |
| 25 | + | } | |
| 26 | + | ||
| 21 | 27 | let short_path = &app.queue_list.get_item_at_current_index().file; | |
| 22 | 28 | ||
| 23 | 29 | if let Some(full_path) = app.conn.get_full_path(short_path) { | |