mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Fix calling setState after widget dismissed
This commit is contained in:
parent
9b9e737a95
commit
3fcb4e2090
1 changed files with 5 additions and 3 deletions
|
@ -430,9 +430,11 @@ class _HomePhotosState extends State<HomePhotos>
|
||||||
final shareRepo = ShareRepo(ShareRemoteDataSource());
|
final shareRepo = ShareRepo(ShareRemoteDataSource());
|
||||||
await AddToAlbum(albumRepo, shareRepo)(
|
await AddToAlbum(albumRepo, shareRepo)(
|
||||||
widget.account, value, selected);
|
widget.account, value, selected);
|
||||||
setState(() {
|
if (mounted) {
|
||||||
clearSelectedItems();
|
setState(() {
|
||||||
});
|
clearSelectedItems();
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
L10n.global().addSelectedToAlbumSuccessNotification(value.name),
|
L10n.global().addSelectedToAlbumSuccessNotification(value.name),
|
||||||
|
|
Loading…
Reference in a new issue