Add new photos to the head of album

Matters when the album is sorted manually
This commit is contained in:
Ming Ming 2021-07-10 01:05:57 +08:00
parent f2ec5a0e63
commit f6bc230a2c
2 changed files with 2 additions and 2 deletions

View file

@ -319,8 +319,8 @@ class _HomePhotosState extends State<HomePhotos>
album.copyWith(
provider: AlbumStaticProvider(
items: makeDistinctAlbumItems([
...AlbumStaticProvider.of(album).items,
...selected,
...AlbumStaticProvider.of(album).items,
]),
),
));

View file

@ -372,8 +372,8 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
album.copyWith(
provider: AlbumStaticProvider(
items: [
...AlbumStaticProvider.of(album).items,
AlbumFileItem(file: widget.file),
...AlbumStaticProvider.of(album).items,
],
),
));