From 2238fcc68fb1a0a51070bd65c54acabfbd802317 Mon Sep 17 00:00:00 2001 From: nyne Date: Thu, 26 Dec 2024 13:59:54 +0800 Subject: [PATCH] continue reading --- lib/pages/favorites/local_favorites_page.dart | 13 +++++++++++++ lib/pages/reader/loading.dart | 2 ++ 2 files changed, 15 insertions(+) diff --git a/lib/pages/favorites/local_favorites_page.dart b/lib/pages/favorites/local_favorites_page.dart index b31ee8e..2a8f344 100644 --- a/lib/pages/favorites/local_favorites_page.dart +++ b/lib/pages/favorites/local_favorites_page.dart @@ -390,6 +390,19 @@ class _LocalFavoritesPageState extends State<_LocalFavoritesPage> { ); }, ), + if (appdata.settings["onClickFavorite"] == "viewDetail") + MenuEntry( + icon: Icons.menu_book_outlined, + text: "Read".tl, + onClick: () { + App.mainNavigatorKey?.currentContext?.to( + () => ReaderWithLoading( + id: c.id, + sourceKey: c.sourceKey, + ), + ); + }, + ), ]; }, onTap: (c) { diff --git a/lib/pages/reader/loading.dart b/lib/pages/reader/loading.dart index 682f457..c0c7e27 100644 --- a/lib/pages/reader/loading.dart +++ b/lib/pages/reader/loading.dart @@ -25,6 +25,8 @@ class _ReaderWithLoadingState name: data.name, chapters: data.chapters, history: data.history, + initialChapter: data.history.ep, + initialPage: data.history.page, ); }