mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Add new photos to the head of album
Matters when the album is sorted manually
This commit is contained in:
parent
f2ec5a0e63
commit
f6bc230a2c
2 changed files with 2 additions and 2 deletions
|
@ -319,8 +319,8 @@ class _HomePhotosState extends State<HomePhotos>
|
|||
album.copyWith(
|
||||
provider: AlbumStaticProvider(
|
||||
items: makeDistinctAlbumItems([
|
||||
...AlbumStaticProvider.of(album).items,
|
||||
...selected,
|
||||
...AlbumStaticProvider.of(album).items,
|
||||
]),
|
||||
),
|
||||
));
|
||||
|
|
|
@ -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,
|
||||
],
|
||||
),
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue