Skip to content

Commit

Permalink
fix: crash on downloads page
Browse files Browse the repository at this point in the history
  • Loading branch information
zznty committed Sep 23, 2024
1 parent 1b0335e commit 5f29524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MusicX/Controls/QueueTrackControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public bool IsCurrentlyPlaying
}

private int IndexInItemsControl =>
ItemContainerGeneratorIndexHook.GetItemContainerIndex(((FrameworkElement)TemplatedParent).TemplatedParent);
ItemContainerGeneratorIndexHook.GetItemContainerIndex(((FrameworkElement)TemplatedParent).TemplatedParent ?? TemplatedParent);

public QueueTrackControl()
{
Expand Down

0 comments on commit 5f29524

Please sign in to comment.