fix(mobile): delete from device warning shows incorrectly (#23935)
fix(mobile): delete warning on multiple assetspull/13851/head
parent
af22f9b014
commit
eeee5147cc
|
|
@ -264,9 +264,8 @@ class ActionNotifier extends Notifier<void> {
|
|||
}
|
||||
|
||||
Future<ActionResult?> deleteLocal(ActionSource source, BuildContext context) async {
|
||||
// Always perform the operation if there is only one merged asset
|
||||
final assets = _getAssets(source);
|
||||
bool? backedUpOnly = assets.length == 1 && assets.first.storage == AssetState.merged
|
||||
bool? backedUpOnly = assets.every((asset) => asset.storage == AssetState.merged)
|
||||
? true
|
||||
: await showDialog<bool>(
|
||||
context: context,
|
||||
|
|
|
|||
Loading…
Reference in New Issue