mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix auto language filter. Close #171
This commit is contained in:
@@ -116,13 +116,13 @@ class _SearchResultPageState extends State<SearchResultPage> {
|
|||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
sourceKey = widget.sourceKey;
|
sourceKey = widget.sourceKey;
|
||||||
|
text = checkAutoLanguage(widget.text);
|
||||||
controller = SearchBarController(
|
controller = SearchBarController(
|
||||||
currentText: checkAutoLanguage(widget.text),
|
currentText: text,
|
||||||
onSearch: search,
|
onSearch: search,
|
||||||
);
|
);
|
||||||
options = widget.options ?? const [];
|
options = widget.options ?? const [];
|
||||||
validateOptions();
|
validateOptions();
|
||||||
text = widget.text;
|
|
||||||
appdata.addSearchHistory(text);
|
appdata.addSearchHistory(text);
|
||||||
suggestionsController = _SuggestionsController(controller);
|
suggestionsController = _SuggestionsController(controller);
|
||||||
super.initState();
|
super.initState();
|
||||||
|
Reference in New Issue
Block a user