A cross platform Audiobookshelf client for Android and iOS
Dart
Fix infinite loader when hiding eBook-only titles (GH-154)
Barnabasa89d6125f228
diff --git a/lib/screens/library_screen.dart b/lib/screens/library_screen.dartindex 8c14db93..2073e0c6 100644--- a/lib/screens/library_screen.dart+++ b/lib/screens/library_screen.dart@@ -590,7 +590,10 @@ class LibraryScreenState extends State<LibraryScreen> with TickerProviderStateMi}}_page++;- _hasMore = _items.length < total;+ // Compare raw server results to page size, not filtered _items to total.+ // Client-side filters (e.g. hide-ebook-only) reduce _items below total,+ // which would leave _hasMore permanently true and the loader spinning.+ _hasMore = results.length >= _pageSize;_isLoadingPage = false;});} else if (mounted && gen == _loadGeneration) {