Skip to content

Commit

Permalink
The search in favorites and following page no longer inherits keywords
Browse files Browse the repository at this point in the history
收藏页和关注页搜索不再继承关键字
  • Loading branch information
jiangtian616 committed Dec 11, 2023
1 parent 5540d23 commit e202972
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion changelog/v7.4.8+147.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- Optimize the icon display when decompressing archives
- The search in favorites and following page no longer inherits keywords
6 changes: 6 additions & 0 deletions lib/src/pages/favorite/favorite_page_logic.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -100,4 +101,9 @@ class FavoritePageLogic extends BasePageLogic {

updateSafely();
}

@override
void saveSearchConfig(SearchConfig searchConfig) {
storageService.write('searchConfig: $searchConfigKey', searchConfig.copyWith(keyword: '', tags: []).toJson());
}
}
6 changes: 6 additions & 0 deletions lib/src/pages/watched/watched_page_logic.dart
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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());
}
}

0 comments on commit e202972

Please sign in to comment.