exclude cache

This commit is contained in:
Fabian Freund
2026-03-23 13:57:08 +01:00
parent 296226760f
commit 053d4861df
2 changed files with 117 additions and 1 deletions
@@ -43,6 +43,7 @@ class ProfileBackupScreen extends HookConsumerWidget {
final passwordController = useMemoized(() => FancyPasswordController());
final integrityVerification = useState(true);
final skipCaches = useState(false);
final skipPasswordConfirmation = useState(false);
final backupFuture = useState<Future<bool>?>(null);
@@ -111,6 +112,19 @@ class ProfileBackupScreen extends HookConsumerWidget {
'Automatically check that backups are complete and restorable',
),
),
SwitchListTile(
contentPadding: EdgeInsets.zero,
value: skipCaches.value,
onChanged: disableInteraction
? null
: (value) {
skipCaches.value = value;
},
title: const Text('Skip Cache Directories'),
subtitle: const Text(
'Leave out temporary browser caches like page, icon, and thumbnail data to keep backups smaller',
),
),
ExpansionTile(
enabled: !disableInteraction,
childrenPadding: EdgeInsets.zero,
@@ -175,6 +189,7 @@ class ProfileBackupScreen extends HookConsumerWidget {
profile,
password: passwordTextController.text,
integrityCheck: integrityVerification.value,
skipCaches: skipCaches.value,
);
}
},