Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Oct 30, 2024
2 parents 41d7e97 + c9663fe commit ac1af6e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
4 changes: 3 additions & 1 deletion lib/widgets/collection/entry_set_action_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/common/action_mixins/entry_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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>>{};
Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/dialogs/filter_editors/edit_vault_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ class _EditVaultDialogState extends State<EditVaultDialog> with FeedbackMixin, V
context: context,
message: l10n.settingsDisablingBinWarningDialogMessage,
confirmationButtonLabel: l10n.applyButtonLabel,
)) return;
)) {
return;
}
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/dialogs/pick_dialogs/album_pick_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/settings/privacy/privacy.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 3 additions & 1 deletion lib/widgets/viewer/action/entry_action_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ac1af6e

Please sign in to comment.