diff --git a/changelog/v7.4.8+147.md b/changelog/v7.4.8+147.md index b7c5997b..f22d849f 100644 --- a/changelog/v7.4.8+147.md +++ b/changelog/v7.4.8+147.md @@ -2,10 +2,12 @@ - 优化取消收藏时的文案 - 优化保存图片时的图片命名规则 - 优化解压归档时的icon显示 +- 收藏页和关注页搜索不再继承关键字 ------------------------------------------------------------------------------------------ - Fix the bug that auto reading mode cannot scroll to the end in some scenes - Optimize the toast message when canceling favorites - Optimize the image naming rules when saving images -- Optimize the icon display when decompressing archives \ No newline at end of file +- Optimize the icon display when decompressing archives +- The search in favorites and following page no longer inherits keywords \ No newline at end of file diff --git a/lib/src/pages/favorite/favorite_page_logic.dart b/lib/src/pages/favorite/favorite_page_logic.dart index 4db01978..e5d64900 100644 --- a/lib/src/pages/favorite/favorite_page_logic.dart +++ b/lib/src/pages/favorite/favorite_page_logic.dart @@ -8,6 +8,7 @@ import 'package:jhentai/src/network/eh_request.dart'; import 'package:jhentai/src/widget/eh_favorite_sort_order_dialog.dart'; import '../../exception/eh_exception.dart'; +import '../../model/search_config.dart'; import '../../utils/eh_spider_parser.dart'; import '../../utils/log.dart'; import '../../utils/snack_util.dart'; @@ -100,4 +101,9 @@ class FavoritePageLogic extends BasePageLogic { updateSafely(); } + + @override + void saveSearchConfig(SearchConfig searchConfig) { + storageService.write('searchConfig: $searchConfigKey', searchConfig.copyWith(keyword: '', tags: []).toJson()); + } } diff --git a/lib/src/pages/watched/watched_page_logic.dart b/lib/src/pages/watched/watched_page_logic.dart index b2e64853..2087b418 100644 --- a/lib/src/pages/watched/watched_page_logic.dart +++ b/lib/src/pages/watched/watched_page_logic.dart @@ -1,5 +1,6 @@ import 'package:jhentai/src/pages/watched/watched_page_state.dart'; +import '../../model/search_config.dart'; import '../base/base_page_logic.dart'; class WatchedPageLogic extends BasePageLogic { @@ -11,4 +12,9 @@ class WatchedPageLogic extends BasePageLogic { @override final WatchedPageState state = WatchedPageState(); + + @override + void saveSearchConfig(SearchConfig searchConfig) { + storageService.write('searchConfig: $searchConfigKey', searchConfig.copyWith(keyword: '', tags: []).toJson()); + } }