From edf78031a4d811777022aaab8cc484b2bac01d0e Mon Sep 17 00:00:00 2001 From: Benedikt Erhart Date: Sat, 11 May 2024 17:52:38 +0200 Subject: [PATCH] fix: New book screen doesn't respect "read tab first" setting --- lib/ui/books_screen/books_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/books_screen/books_screen.dart b/lib/ui/books_screen/books_screen.dart index f258c78a..3ff26cae 100644 --- a/lib/ui/books_screen/books_screen.dart +++ b/lib/ui/books_screen/books_screen.dart @@ -750,7 +750,9 @@ class _BooksScreenState extends State } BookStatus _getStatusForNewBook() { - if (_tabController.index == 1) { + final inProgressIndex = readTabFirst ? 1 : 0; + + if (_tabController.index == inProgressIndex) { return BookStatus.inProgress; } else if (_tabController.index == 2) { return BookStatus.forLater;