mirror of
https://github.com/immich-app/immich.git
synced 2025-12-08 08:13:55 +09:00
Exernalize multiselect state
This commit is contained in:
@@ -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) ...[
|
||||
|
||||
Reference in New Issue
Block a user