Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] ml debug options 2/x

laurenspriemde2507275581
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
index af6f8b16b2..c083c824dd 100644
--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -121,8 +121,8 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
MenuItemWidget(
captionedTextWidget: CaptionedTextWidget(
title: MLService.instance.debugIndexingDisabled
- ? "Debug enable indexing again"
- : "Debug disable indexing",
+ ? "Enable auto indexing (debug)"
+ : "Disable auto indexing (debug)",
),
pressedColor: getEnteColorScheme(context).fillFaint,
trailingIcon: Icons.chevron_right_outlined,
@@ -133,6 +133,8 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
!MLService.instance.debugIndexingDisabled;
if (MLService.instance.debugIndexingDisabled) {
MLService.instance.pauseIndexingAndClustering();
+ } else {
+ unawaited(MLService.instance.runAllML());
}
if (mounted) {
setState(() {});