diff --git a/mobile/lib/widgets/settings/free_up_space_settings.dart b/mobile/lib/widgets/settings/free_up_space_settings.dart index 91eb4e16d3..fbd6a08736 100644 --- a/mobile/lib/widgets/settings/free_up_space_settings.dart +++ b/mobile/lib/widgets/settings/free_up_space_settings.dart @@ -66,6 +66,7 @@ class _FreeUpSpaceSettingsState extends ConsumerState { void _goToScanStep() { ref.read(hapticFeedbackProvider.notifier).mediumImpact(); setState(() => _currentStep = CleanupStep.scan); + _scanAssets(); } void _setPresetDate(int daysAgo) { @@ -152,6 +153,11 @@ class _FreeUpSpaceSettingsState extends ConsumerState { context: context, builder: (ctx) => _DeleteSuccessDialog(deletedCount: deletedCount), ); + + if (mounted) { + context.router.popUntilRoot(); + } + return; } setState(() => _currentStep = CleanupStep.selectDate); @@ -335,6 +341,7 @@ class _FreeUpSpaceSettingsState extends ConsumerState { ), const SizedBox(height: 4), SegmentedButton( + showSelectedIcon: false, segments: [ const ButtonSegment(value: AssetKeepType.none, label: Text('—')), ButtonSegment(