mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix the issue where page is not reloaded after changing search options in search results page.
This commit is contained in:
@@ -187,7 +187,7 @@ class _SearchResultPageState extends State<SearchResultPage> {
|
|||||||
suggestionsController.remove();
|
suggestionsController.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
var previousOptions = options;
|
var previousOptions = List<String>.from(options);
|
||||||
var previousSourceKey = sourceKey;
|
var previousSourceKey = sourceKey;
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@@ -196,7 +196,8 @@ class _SearchResultPageState extends State<SearchResultPage> {
|
|||||||
return _SearchSettingsDialog(state: this);
|
return _SearchSettingsDialog(state: this);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
if (previousOptions != options || previousSourceKey != sourceKey) {
|
if (!previousOptions.isEqualsTo(options) ||
|
||||||
|
previousSourceKey != sourceKey) {
|
||||||
text = checkAutoLanguage(controller.text);
|
text = checkAutoLanguage(controller.text);
|
||||||
controller.currentText = text;
|
controller.currentText = text;
|
||||||
setState(() {});
|
setState(() {});
|
||||||
|
Reference in New Issue
Block a user