π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fixed linting issues
a5xwin9224cea96faa
diff --git a/mobile/apps/auth/lib/services/local_backup_service.dart b/mobile/apps/auth/lib/services/local_backup_service.dartindex 50052e69c0..95f3b77d92 100644--- a/mobile/apps/auth/lib/services/local_backup_service.dart+++ b/mobile/apps/auth/lib/services/local_backup_service.dart@@ -32,7 +32,7 @@ class LocalBackupService {if (backupContent.trim().isEmpty) return;- final fileName = 'ente-auth-auto-backup.txt';+ const fileName = 'ente-auth-auto-backup.txt';final filePath = '$backupPath/$fileName';final backupFile = File(filePath);await backupFile.writeAsString(backupContent);diff --git a/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart b/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dartindex c10143601d..c77349cf52 100644--- a/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart+++ b/mobile/apps/auth/lib/ui/settings/data/local_backup_settings_page.dart@@ -42,7 +42,7 @@ class _LocalBackupSettingsPageState extends State<LocalBackupSettingsPage> {_backupPath = directoryPath;});- LocalBackupService.instance.triggerAutomaticBackup(); //whenever backup path is set, we trigger+ await LocalBackupService.instance.triggerAutomaticBackup(); //whenever backup path is set, we triggerScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Location updated and initial backup created!'),),@@ -80,7 +80,7 @@ class _LocalBackupSettingsPageState extends State<LocalBackupSettingsPage> {if (value == true) { //if toggle was on: trigger backupif (_backupPath != null) { //ensuring path was set- LocalBackupService.instance.triggerAutomaticBackup();+ await LocalBackupService.instance.triggerAutomaticBackup();ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('Initial backup created!'),),@@ -147,10 +147,10 @@ class _LocalBackupSettingsPageState extends State<LocalBackupSettingsPage> {Container(padding: const EdgeInsets.all(16),decoration: BoxDecoration(- color: Colors.orange.withOpacity(0.1),+ color: Colors.orange.withAlpha(26),borderRadius: BorderRadius.circular(8),border: Border.all(- color: Colors.orange.withOpacity(0.3),+ color: Colors.orange.withAlpha(77),width: 1,),),