Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed formatting
  • Loading branch information
Peterwmoss committed Nov 16, 2019
commit fcfc85feec0433359f620c1332c1f7e70ba6c0dd
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ impl App {
None,
Some(self.large_search_limit),
Some(self.playlist_offset),
None
None,
) {
self.set_playlist_tracks_to_table(&playlist_tracks);

Expand Down
8 changes: 5 additions & 3 deletions src/handlers/track_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub fn handler(key: Key, app: &mut App) {
Some(context) => match context {
TrackTableContext::MyPlaylists => {
if let (Some(playlists), Some(selected_playlist_index)) =
(&app.playlists, &app.selected_playlist_index)
(&app.playlists, &app.selected_playlist_index)
{
if let Some(selected_playlist) = playlists.items.get(selected_playlist_index.to_owned())
{
Expand All @@ -132,9 +132,11 @@ pub fn handler(key: Key, app: &mut App) {
Some(context) => match context {
TrackTableContext::MyPlaylists => {
if let (Some(playlists), Some(selected_playlist_index)) =
(&app.playlists, &app.selected_playlist_index)
(&app.playlists, &app.selected_playlist_index)
{
if app.playlist_offset >= 20 { app.playlist_offset -= 20; } ;
if app.playlist_offset >= 20 {
app.playlist_offset -= 20;
};
if let Some(selected_playlist) =
playlists.items.get(selected_playlist_index.to_owned())
{
Expand Down