Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix #620
Browse files Browse the repository at this point in the history
  • Loading branch information
wgh136 committed Aug 25, 2024
1 parent 15cd806 commit ab753ed
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions lib/pages/search_result_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -287,21 +287,23 @@ class _SearchResultPageState extends State<_SearchResultPage> {
onPressed: () {
if (sourceKey != null) {
context.pop();
if (ComicSource.find(sourceKey!)!
.searchPageData
?.overrideSearchResultBuilder !=
null) {
var searchData = ComicSource.find(sourceKey!)!.searchPageData!;
options = (searchData.searchOptions ?? [])
.map((e) => e.defaultValue)
.toList();
if (searchData.overrideSearchResultBuilder != null) {
this.context.off(() {
return SearchResultPage(
keyword: keyword,
options: options,
sourceKey: sourceKey!,
);
});
} else {
this.setState(() {
this.sourceKey = sourceKey!;
});
}
this.setState(() {
this.sourceKey = sourceKey!;
});
}
},
)
Expand Down

0 comments on commit ab753ed

Please sign in to comment.