Browse Source

DebugOnly: Support for clearing changelog tracking

Neeraj Gupta 2 years ago
parent
commit
9592eb1f59
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/ui/settings/debug_section_widget.dart

+ 2 - 0
lib/ui/settings/debug_section_widget.dart

@@ -6,6 +6,7 @@ import 'package:photos/core/configuration.dart';
 import 'package:photos/services/ignored_files_service.dart';
 import 'package:photos/services/local_sync_service.dart';
 import 'package:photos/services/sync_service.dart';
+import 'package:photos/services/update_service.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/ui/components/captioned_text_widget.dart';
 import 'package:photos/ui/components/expandable_menu_item_widget.dart';
@@ -37,6 +38,7 @@ class DebugSectionWidget extends StatelessWidget {
           trailingIcon: Icons.chevron_right_outlined,
           trailingIconIsMuted: true,
           onTap: () async {
+            await UpdateService.instance.resetChangeLog();
             _showKeyAttributesDialog(context);
           },
         ),