mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-16 07:06:14 +08:00
@@ -155,11 +155,13 @@ class _CreateFavPageState extends State<CreateFavPage> {
|
||||
bucket: 'medialist',
|
||||
dir: 'cover',
|
||||
).then((res) {
|
||||
if (res['status']) {
|
||||
_cover = res['data']['location'];
|
||||
(context as Element).markNeedsBuild();
|
||||
} else {
|
||||
SmartDialog.showToast(res['msg']);
|
||||
if (context.mounted) {
|
||||
if (res['status']) {
|
||||
_cover = res['data']['location'];
|
||||
(context as Element).markNeedsBuild();
|
||||
} else {
|
||||
SmartDialog.showToast(res['msg']);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user