Skip to content

Commit

Permalink
fix: New book screen doesn't respect "read tab first" setting
Browse files Browse the repository at this point in the history
  • Loading branch information
b-erhart committed May 11, 2024
1 parent ca313c2 commit edf7803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ui/books_screen/books_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,9 @@ class _BooksScreenState extends State<BooksScreen>
}

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;
Expand Down

0 comments on commit edf7803

Please sign in to comment.