mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 19:16:44 +08:00
fix #1061
opt `FollowingsFollowedUpper` url Closes #1061 Closes #1062 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -150,6 +150,7 @@ class SSearchController extends GetxController
|
||||
historyList
|
||||
..remove(controller.text)
|
||||
..insert(0, controller.text);
|
||||
GStorage.historyWord.put('cacheList', historyList);
|
||||
}
|
||||
|
||||
searchFocusNode.unfocus();
|
||||
@@ -197,6 +198,7 @@ class SSearchController extends GetxController
|
||||
|
||||
void onLongSelect(String word) {
|
||||
historyList.remove(word);
|
||||
GStorage.historyWord.put('cacheList', historyList);
|
||||
}
|
||||
|
||||
void onClearHistory() {
|
||||
@@ -205,13 +207,13 @@ class SSearchController extends GetxController
|
||||
title: '确定清空搜索历史?',
|
||||
onConfirm: () {
|
||||
historyList.clear();
|
||||
GStorage.historyWord.delete('cacheList');
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
GStorage.historyWord.put('cacheList', historyList);
|
||||
subDispose();
|
||||
searchFocusNode.dispose();
|
||||
controller.dispose();
|
||||
|
||||
Reference in New Issue
Block a user