mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: delay reloading fav
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -214,7 +214,11 @@ class _FavDetailPageState extends State<FavDetailPage> {
|
|||||||
.then((data) {
|
.then((data) {
|
||||||
if (data['status']) {
|
if (data['status']) {
|
||||||
SmartDialog.showToast('清除成功');
|
SmartDialog.showToast('清除成功');
|
||||||
|
Future.delayed(
|
||||||
|
const Duration(
|
||||||
|
milliseconds: 200), () {
|
||||||
_favDetailController.onReload();
|
_favDetailController.onReload();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
SmartDialog.showToast(data['msg']);
|
SmartDialog.showToast(data['msg']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user