Fix post update logic running twice

This commit is contained in:
Ming Ming 2021-08-22 19:13:44 +08:00
parent e165c618fe
commit c4c750a778

View file

@ -330,11 +330,6 @@ class _AlbumBrowserState extends State<AlbumBrowser>
selectedIndexes.length)), selectedIndexes.length)),
duration: k.snackBarDurationNormal, duration: k.snackBarDurationNormal,
)); ));
setState(() {
_album = newAlbum;
_transformItems();
initCover(widget.account, newAlbum);
});
}).catchError((e, stacktrace) { }).catchError((e, stacktrace) {
_log.shout("[_onSelectionRemovePressed] Failed while updating album", e, _log.shout("[_onSelectionRemovePressed] Failed while updating album", e,
stacktrace); stacktrace);