mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +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(
|
album.copyWith(
|
||||||
provider: AlbumStaticProvider(
|
provider: AlbumStaticProvider(
|
||||||
items: makeDistinctAlbumItems([
|
items: makeDistinctAlbumItems([
|
||||||
...AlbumStaticProvider.of(album).items,
|
|
||||||
...selected,
|
...selected,
|
||||||
|
...AlbumStaticProvider.of(album).items,
|
||||||
]),
|
]),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
|
@ -372,8 +372,8 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
|
||||||
album.copyWith(
|
album.copyWith(
|
||||||
provider: AlbumStaticProvider(
|
provider: AlbumStaticProvider(
|
||||||
items: [
|
items: [
|
||||||
...AlbumStaticProvider.of(album).items,
|
|
||||||
AlbumFileItem(file: widget.file),
|
AlbumFileItem(file: widget.file),
|
||||||
|
...AlbumStaticProvider.of(album).items,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue