mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Refactoring
This commit is contained in:
parent
a9b424f25d
commit
dfe1acc6e4
1 changed files with 1 additions and 6 deletions
|
@ -525,12 +525,7 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
|||
}
|
||||
|
||||
void _transformItems(List<AlbumItem> items) {
|
||||
if (_editAlbum != null) {
|
||||
// edit mode
|
||||
_sortedItems = _editAlbum!.sortProvider.sort(items);
|
||||
} else {
|
||||
_sortedItems = _album!.sortProvider.sort(items);
|
||||
}
|
||||
_sortedItems = (_editAlbum ?? _album)!.sortProvider.sort(items);
|
||||
_onSortedItemsUpdated();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue