π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update title + local sync trigger in loading photos widget
Prateek Sunal1318aab2c654
diff --git a/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart b/mobile/apps/photos/lib/ui/home/loading_photos_widget.dartindex e0f1c6697d..42382e04d3 100644--- a/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart+++ b/mobile/apps/photos/lib/ui/home/loading_photos_widget.dart@@ -8,6 +8,7 @@ import 'package:photos/events/local_import_progress.dart';import 'package:photos/events/sync_status_update_event.dart';import "package:photos/generated/l10n.dart";import "package:photos/service_locator.dart";+import "package:photos/services/sync/local_sync_service.dart";import 'package:photos/ui/common/bottom_shadow.dart';import "package:photos/ui/components/buttons/button_widget.dart";import "package:photos/ui/components/dialog_widget.dart";@@ -78,6 +79,18 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {curve: Curves.easeIn,);});++ // For non-onboarding flows (e.g., user skipped permission during onboarding+ // and later enabled backup from settings), we need to trigger local sync here.+ // The skip flag was cleared before navigating to this widget, so sync will+ // now proceed with first import.+ // We use LocalSyncService.sync() directly because:+ // 1. It has its own _existingSync guard - returns existing future if already running+ // 2. It's all we need for first import (fires completedFirstGalleryImport event)+ // 3. Avoids race conditions with SyncService._doSync() calling syncAll()+ if (!widget.isOnboardingFlow) {+ unawaited(LocalSyncService.instance.sync());+ }}Future<void> _goToFolderSelection() async {diff --git a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dartindex 67724d9b05..344e7a32f5 100644--- a/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart+++ b/mobile/apps/photos/lib/ui/settings/backup/backup_settings_screen.dart@@ -324,7 +324,7 @@ class BackupSettingsScreen extends StatelessWidget {isInAlert: true,),],- title: "Only backup new photos",+ title: "Backup only new photos",body: hasAllFoldersSelected? "All folders are currently selected for backup.\n\nYou can continue for now, or update selected folders.": allowContinueAnyway