#1365 fixed displaying neighbour items when the initial item of a view intent is a new one

This commit is contained in:
Thibault Deckers 2025-01-05 16:30:57 +01:00
parent ecbbd3b459
commit 162900091e
2 changed files with 8 additions and 1 deletions

View file

@ -9,6 +9,12 @@ All notable changes to this project will be documented in this file.
- dynamic album decompose action
- Danish translation (thanks Grooty12, Victor M, cat)
### Fixed
- analysis service not triggering because of uninitialized app lifecycle
- Viewer: displaying neighbour items when the initial item of a view intent is a new one
- Search: dynamic album name filtering
## <a id="v1.12.0"></a>[v1.12.0] - 2024-12-19
### Added

View file

@ -240,7 +240,8 @@ class _HomePageState extends State<HomePage> {
unawaited(AnalysisService.registerCallback());
await reportService.log('Initialize source to view item in directory $directory');
final source = context.read<CollectionSource>();
source.canAnalyze = false;
// analysis is necessary to display neighbour items when the initial item is a new one
source.canAnalyze = true;
await source.init(scope: {StoredAlbumFilter(directory, null)});
}
} else {