Fix 'Default' category showing in library with no user-added categories (#2371)

This commit is contained in:
AntsyLich
2025-08-07 09:52:22 +06:00
committed by GitHub
parent a93f71b82b
commit 7d717ee7fd
2 changed files with 2 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ fun LibraryContent(
val scope = rememberCoroutineScope()
var isRefreshing by remember(pagerState.currentPage) { mutableStateOf(false) }
if (showPageTabs && categories.isNotEmpty()) {
if (showPageTabs && categories.isNotEmpty() && (categories.size > 1 || !categories.first().isSystemCategory)) {
LaunchedEffect(categories) {
if (categories.size <= pagerState.currentPage) {
pagerState.scrollToPage(categories.size - 1)