fix import history

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-21 15:02:49 +08:00
parent ba14e56ceb
commit ed191e20b4

View File

@@ -402,7 +402,9 @@ class _SearchPageState extends State<SearchPage> {
toJson: () => jsonEncode(_searchController.historyList),
fromJson: (json) {
try {
_searchController.historyList.value = List<String>.from(json);
final list = List<String>.from(json);
_searchController.historyList.value = list;
GStorage.historyWord.put('cacheList', list);
return true;
} catch (e) {
SmartDialog.showToast(e.toString());