diff --git a/android/fastlane/metadata/android/en-US/changelogs/104.txt b/android/fastlane/metadata/android/en-US/changelogs/104.txt new file mode 100644 index 0000000000..56dea29a61 --- /dev/null +++ b/android/fastlane/metadata/android/en-US/changelogs/104.txt @@ -0,0 +1 @@ +- Automatic updates the drive explorer after ghost folder correction. \ No newline at end of file diff --git a/lib/components/ghost_fixer_form.dart b/lib/components/ghost_fixer_form.dart index 482a9d107b..c5c0939097 100644 --- a/lib/components/ghost_fixer_form.dart +++ b/lib/components/ghost_fixer_form.dart @@ -18,6 +18,7 @@ import 'components.dart'; Future promptToReCreateFolder(BuildContext context, {required FolderDataTableItem ghostFolder}) { if (ghostFolder.parentFolderId != null) { + final driveDetailCubit = context.read(); return showArDriveDialog( context, content: BlocProvider( @@ -28,7 +29,9 @@ Future promptToReCreateFolder(BuildContext context, turboUploadService: context.read(), driveDao: context.read(), syncCubit: context.read()), - child: const GhostFixerForm(), + child: GhostFixerForm( + driveDetailCubit: driveDetailCubit, + ), ), ); } else { @@ -38,7 +41,12 @@ Future promptToReCreateFolder(BuildContext context, } class GhostFixerForm extends StatefulWidget { - const GhostFixerForm({Key? key}) : super(key: key); + const GhostFixerForm({ + Key? key, + required this.driveDetailCubit, + }) : super(key: key); + + final DriveDetailCubit driveDetailCubit; @override State createState() => _GhostFixerFormState(); @@ -60,6 +68,7 @@ class _GhostFixerFormState extends State { } else if (state is GhostFixerSuccess) { Navigator.pop(context); Navigator.pop(context); + widget.driveDetailCubit.refreshDriveDataTable(); } else if (state is GhostFixerWalletMismatch) { Navigator.pop(context); } else if (state is GhostFixerNameConflict) { diff --git a/pubspec.yaml b/pubspec.yaml index 3ba39aa0f8..fabc3fb830 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: Secure, permanent storage publish_to: 'none' -version: 2.33.2 +version: 2.33.3 environment: sdk: '>=3.0.2 <4.0.0'