Skip to content

Minor issues(handlers, scan) #169

@luckasRanarison

Description

@luckasRanarison

Hi there! It's the first time I'm really trying your app and I've encountered some small issues. Unfortunately, I can't work on a fork of your project and make a PR because of my current hardware but I hope this issue helps.

  • The TUI player panics when trying to access empty fields due to the handlers:

image

The Enter events should check if the indexed field is valid

  Key::Enter => {
         if let Some(artist) = app.artist_table.artist.get(app.artist_table.selected_index) {
                app.dispatch(IoEvent::GetArtist(artist.id.clone()));
                app.push_navigation_stack(RouteId::Artist, ActiveBlock::ArtistBlock);
         }
  }

image

  • Deleted songs still appear after re-scaning

image
image

OS: Fedora37
music-player version: v0.2.0-alpha.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions