mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +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());
|
||||
await AddToAlbum(albumRepo, shareRepo)(
|
||||
widget.account, value, selected);
|
||||
setState(() {
|
||||
clearSelectedItems();
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
clearSelectedItems();
|
||||
});
|
||||
}
|
||||
},
|
||||
null,
|
||||
L10n.global().addSelectedToAlbumSuccessNotification(value.name),
|
||||
|
|
Loading…
Reference in a new issue