Skip to content

Commit

Permalink
artists: Fix showing local/remote artists
Browse files Browse the repository at this point in the history
  • Loading branch information
mikooomich authored and reocat committed Dec 11, 2024
1 parent 2fa63df commit 968a5d1
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,9 @@ fun ArtistScreen(
}
}

LaunchedEffect(isNetworkConnected) {
if (!showLocal) {
showLocal = true
}
LaunchedEffect(isNetworkConnected, libraryArtist) {
// always show local page for local artists. Show local page remote artist when offline
showLocal = !isNetworkConnected || libraryArtist?.artist?.isLocalArtist == true
}

val artistHead = @Composable {
Expand Down

0 comments on commit 968a5d1

Please sign in to comment.