lint
This commit is contained in:
parent
520499d33e
commit
c9663fea19
7 changed files with 21 additions and 7 deletions
|
@ -310,7 +310,9 @@ class EntrySetActionDelegate with FeedbackMixin, PermissionAwareMixin, SizeAware
|
|||
type: ConfirmationDialog.deleteForever,
|
||||
message: l10n.deleteEntriesConfirmationDialogMessage(todoCount),
|
||||
confirmationButtonLabel: l10n.deleteButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!await checkStoragePermissionForAlbums(context, storageDirs, entries: entries)) return;
|
||||
|
||||
|
|
|
@ -327,7 +327,9 @@ mixin EntryStorageMixin on FeedbackMixin, PermissionAwareMixin, SizeAwareMixin {
|
|||
type: ConfirmationDialog.moveToBin,
|
||||
message: l10n.binEntriesConfirmationDialogMessage(entries.length),
|
||||
confirmationButtonLabel: l10n.deleteButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
final entriesByDestination = <String, Set<AvesEntry>>{};
|
||||
|
|
|
@ -134,7 +134,9 @@ class _EditVaultDialogState extends State<EditVaultDialog> with FeedbackMixin, V
|
|||
context: context,
|
||||
message: l10n.settingsDisablingBinWarningDialogMessage,
|
||||
confirmationButtonLabel: l10n.applyButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -263,7 +263,9 @@ class _AlbumPickPageState extends State<_AlbumPickPage> {
|
|||
type: ConfirmationDialog.createVault,
|
||||
message: l10n.newVaultWarningDialogMessage,
|
||||
confirmationButtonLabel: l10n.continueButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
||||
final details = await showDialog<VaultDetails>(
|
||||
context: context,
|
||||
|
|
|
@ -206,7 +206,9 @@ class AlbumChipSetActionDelegate extends ChipSetActionDelegate<AlbumFilter> with
|
|||
type: ConfirmationDialog.createVault,
|
||||
message: l10n.newVaultWarningDialogMessage,
|
||||
confirmationButtonLabel: l10n.continueButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
||||
final details = await showDialog<VaultDetails>(
|
||||
context: context,
|
||||
|
|
|
@ -123,7 +123,9 @@ class SettingsTilePrivacyEnableBin extends SettingsTile {
|
|||
context: context,
|
||||
message: l10n.settingsDisablingBinWarningDialogMessage,
|
||||
confirmationButtonLabel: l10n.applyButtonLabel,
|
||||
)) return false;
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// delete forever trashed items
|
||||
await EntrySetActionDelegate().doDelete(
|
||||
|
|
|
@ -434,7 +434,9 @@ class EntryActionDelegate with FeedbackMixin, PermissionAwareMixin, SizeAwareMix
|
|||
type: ConfirmationDialog.deleteForever,
|
||||
message: l10n.deleteEntriesConfirmationDialogMessage(1),
|
||||
confirmationButtonLabel: l10n.deleteButtonLabel,
|
||||
)) return;
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!await checkStoragePermission(context, {targetEntry})) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue