Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update comments

AmanRajSinghMourya7b9fb4782bbe
diff --git a/mobile/apps/locker/lib/l10n/app_localizations.dart b/mobile/apps/locker/lib/l10n/app_localizations.dart
index 67e18fd9df..5bc5eb24af 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations.dart
@@ -1977,12 +1977,6 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Locker logs'**
String get lockerLogs;
-
- /// No description provided for @debugLogsForLockerApp.
- ///
- /// In en, this message translates to:
- /// **'Debug logs for Locker app.\\n\\n'**
- String get debugLogsForLockerApp;
}
class _AppLocalizationsDelegate
diff --git a/mobile/apps/locker/lib/l10n/app_localizations_en.dart b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
index 24fb54f49f..bab8945149 100644
--- a/mobile/apps/locker/lib/l10n/app_localizations_en.dart
+++ b/mobile/apps/locker/lib/l10n/app_localizations_en.dart
@@ -1116,7 +1116,4 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get lockerLogs => 'Locker logs';
-
- @override
- String get debugLogsForLockerApp => 'Debug logs for Locker app.\\n\\n';
}
diff --git a/mobile/apps/locker/lib/ui/pages/uploader_page.dart b/mobile/apps/locker/lib/ui/pages/uploader_page.dart
index cc94864bb8..5f46769aac 100644
--- a/mobile/apps/locker/lib/ui/pages/uploader_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/uploader_page.dart
@@ -122,23 +122,12 @@ abstract class UploaderPageState<T extends UploaderPage> extends State<T> {
await progressDialog.show();
await Future.wait(futures);
- // If multiple collections were selected we suppressed per-add syncs
- // (runSync: false) for the additional collections above. In that
- // case we must perform one final sync here and then notify the
- // UI via onFileUploadComplete(). If only a single collection was
- // selected the primary upload path is expected to have already
- // performed any necessary syncs and/or emitted the
- // CollectionsUpdatedEvent, so calling sync() again would be
- // redundant and can cause duplicate UI refreshes.
+ // Sync once at the end when files are added to multiple collections
final shouldPerformFinalSync = (uploadResult != null &&
uploadResult.selectedCollections.length > 1);
if (shouldPerformFinalSync) {
- // Perform the final sync. The sync itself fires
- // CollectionsUpdatedEvent which HomePage listens to and will
- // refresh the UI via _loadCollections(). Do NOT call
- // onFileUploadComplete() here to avoid triggering an additional
- // UI refresh that would duplicate the event-driven update.
+ // Final sync triggers UI refresh via CollectionsUpdatedEvent
await CollectionService.instance.sync();
}
}