mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-27 13:55:54 +08:00
fix import history
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -402,7 +402,9 @@ class _SearchPageState extends State<SearchPage> {
|
|||||||
toJson: () => jsonEncode(_searchController.historyList),
|
toJson: () => jsonEncode(_searchController.historyList),
|
||||||
fromJson: (json) {
|
fromJson: (json) {
|
||||||
try {
|
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;
|
return true;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
SmartDialog.showToast(e.toString());
|
SmartDialog.showToast(e.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user