mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Exernalize multiselect state
This commit is contained in:
parent
6b84534632
commit
3c807ae86e
2 changed files with 25 additions and 18 deletions
|
|
@ -48,10 +48,12 @@ class HomePage extends HookConsumerWidget {
|
|||
|
||||
void onShareAssets() {
|
||||
ref.watch(shareServiceProvider).shareAssets(selection.value.toList());
|
||||
multiselectEnabled.value = false;
|
||||
}
|
||||
|
||||
void onDelete() {
|
||||
ref.watch(assetProvider.notifier).deleteAssets(selection.value);
|
||||
multiselectEnabled.value = false;
|
||||
}
|
||||
|
||||
return SafeArea(
|
||||
|
|
@ -82,6 +84,7 @@ class HomePage extends HookConsumerWidget {
|
|||
showStorageIndicator: appSettingService
|
||||
.getSetting(AppSettingsEnum.storageIndicator),
|
||||
listener: selectionListener,
|
||||
selectionActive: multiselectEnabled.value,
|
||||
),
|
||||
),
|
||||
if (multiselectEnabled.value) ...[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue