Disable metadata and ml indexing

This commit is contained in:
Neeraj Gupta
2025-04-18 12:14:39 +05:30
parent cd377149bc
commit e060fb9823
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
import 'dart:async';
import 'dart:io';
import "package:flutter/foundation.dart";
import 'package:logging/logging.dart';
import 'package:photo_manager/photo_manager.dart';
import 'package:photos/core/event_bus.dart';
@@ -151,8 +152,8 @@ class LocalImportService {
if (_isMetaScanRunning) {
_log.info("metadata scan already in progress");
return;
} else if (Platform.isIOS) {
_log.info("metadata scan not implemented on iOS yet");
} else if (kDebugMode) {
_log.info("metadata scan not implemented in kDebugMode yet");
return;
}

View File

@@ -130,6 +130,7 @@ class MLService {
if (force) {
_mlControllerStatus = true;
}
return;
if (!_canRunMLFunction(function: "AllML") && !force) return;
_isRunningML = true;
await sync();