mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: realized I could just pull from the timelineProvider instead of storing it in the asset viewer state
This commit is contained in:
parent
268867353b
commit
b397538478
5 changed files with 7 additions and 21 deletions
|
|
@ -61,9 +61,8 @@ class AssetViewer extends ConsumerStatefulWidget {
|
|||
@override
|
||||
ConsumerState createState() => _AssetViewerState();
|
||||
|
||||
static void setAsset(WidgetRef ref, BaseAsset asset, TimelineType timelineType) {
|
||||
static void setAsset(WidgetRef ref, BaseAsset asset) {
|
||||
ref.read(assetViewerProvider.notifier).reset();
|
||||
ref.read(assetViewerProvider.notifier).setTimelineType(timelineType);
|
||||
_setAsset(ref, asset);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue