From 1be44bff9e7ea48ff01eb4cbc55d00dee2953a45 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Thu, 25 Jul 2024 10:38:37 +0800 Subject: [PATCH] fix: add storage --- ui/lib/search.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/search.dart b/ui/lib/search.dart index c9e4b26..1d0d9b6 100644 --- a/ui/lib/search.dart +++ b/ui/lib/search.dart @@ -260,7 +260,7 @@ class _SearchPageState extends ConsumerState { .notifier) .submit2Watchlist(item.id!, storageSelected, resSelected, item.mediaType!, pathController.text) - .then((v) { + .whenComplete(() { Utils.showSnakeBar("添加成功"); Navigator.of(context).pop(); }).onError((error, trace) {