Skip to content

Commit

Permalink
Merge pull request #1611 from ardriveapp/dev
Browse files Browse the repository at this point in the history
PE-5617: Release ArDrive App v2.33.3
  • Loading branch information
thiagocarvalhodev authored Feb 8, 2024
2 parents b7b85c6 + a6f35cd commit 4dc2941
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/104.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Automatic updates the drive explorer after ghost folder correction.
13 changes: 11 additions & 2 deletions lib/components/ghost_fixer_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import 'components.dart';
Future<void> promptToReCreateFolder(BuildContext context,
{required FolderDataTableItem ghostFolder}) {
if (ghostFolder.parentFolderId != null) {
final driveDetailCubit = context.read<DriveDetailCubit>();
return showArDriveDialog(
context,
content: BlocProvider(
Expand All @@ -28,7 +29,9 @@ Future<void> promptToReCreateFolder(BuildContext context,
turboUploadService: context.read<TurboUploadService>(),
driveDao: context.read<DriveDao>(),
syncCubit: context.read<SyncCubit>()),
child: const GhostFixerForm(),
child: GhostFixerForm(
driveDetailCubit: driveDetailCubit,
),
),
);
} else {
Expand All @@ -38,7 +41,12 @@ Future<void> 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<GhostFixerForm> createState() => _GhostFixerFormState();
Expand All @@ -60,6 +68,7 @@ class _GhostFixerFormState extends State<GhostFixerForm> {
} 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) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 4dc2941

Please sign in to comment.