From 1ac9149766b1f4b24c29ba99dfe4e4a2e4267ceb Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Thu, 7 Nov 2024 11:35:11 +0100 Subject: [PATCH] fix playlist list item not showing the correct state after adding a track --- lib/components/AddToPlaylistScreen/add_to_playlist_list.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/AddToPlaylistScreen/add_to_playlist_list.dart b/lib/components/AddToPlaylistScreen/add_to_playlist_list.dart index 4204e62ea..b1cff4a27 100644 --- a/lib/components/AddToPlaylistScreen/add_to_playlist_list.dart +++ b/lib/components/AddToPlaylistScreen/add_to_playlist_list.dart @@ -255,7 +255,7 @@ class _AddToPlaylistTileState extends State { ?.playlistItemId; itemIsIncluded = true; }); - return playlistItemId != null; + return true; // this is called before the state is updated } return false; }