Skip to content

Commit e202972

Browse files
committed
The search in favorites and following page no longer inherits keywords
收藏页和关注页搜索不再继承关键字
1 parent 5540d23 commit e202972

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

changelog/v7.4.8+147.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
- 优化取消收藏时的文案
33
- 优化保存图片时的图片命名规则
44
- 优化解压归档时的icon显示
5+
- 收藏页和关注页搜索不再继承关键字
56

67
------------------------------------------------------------------------------------------
78

89
- Fix the bug that auto reading mode cannot scroll to the end in some scenes
910
- Optimize the toast message when canceling favorites
1011
- Optimize the image naming rules when saving images
11-
- Optimize the icon display when decompressing archives
12+
- Optimize the icon display when decompressing archives
13+
- The search in favorites and following page no longer inherits keywords

lib/src/pages/favorite/favorite_page_logic.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:jhentai/src/network/eh_request.dart';
88
import 'package:jhentai/src/widget/eh_favorite_sort_order_dialog.dart';
99

1010
import '../../exception/eh_exception.dart';
11+
import '../../model/search_config.dart';
1112
import '../../utils/eh_spider_parser.dart';
1213
import '../../utils/log.dart';
1314
import '../../utils/snack_util.dart';
@@ -100,4 +101,9 @@ class FavoritePageLogic extends BasePageLogic {
100101

101102
updateSafely();
102103
}
104+
105+
@override
106+
void saveSearchConfig(SearchConfig searchConfig) {
107+
storageService.write('searchConfig: $searchConfigKey', searchConfig.copyWith(keyword: '', tags: []).toJson());
108+
}
103109
}

lib/src/pages/watched/watched_page_logic.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:jhentai/src/pages/watched/watched_page_state.dart';
22

3+
import '../../model/search_config.dart';
34
import '../base/base_page_logic.dart';
45

56
class WatchedPageLogic extends BasePageLogic {
@@ -11,4 +12,9 @@ class WatchedPageLogic extends BasePageLogic {
1112

1213
@override
1314
final WatchedPageState state = WatchedPageState();
15+
16+
@override
17+
void saveSearchConfig(SearchConfig searchConfig) {
18+
storageService.write('searchConfig: $searchConfigKey', searchConfig.copyWith(keyword: '', tags: []).toJson());
19+
}
1420
}

0 commit comments

Comments
 (0)