Disable metadata and ml indexing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -130,6 +130,7 @@ class MLService {
|
||||
if (force) {
|
||||
_mlControllerStatus = true;
|
||||
}
|
||||
return;
|
||||
if (!_canRunMLFunction(function: "AllML") && !force) return;
|
||||
_isRunningML = true;
|
||||
await sync();
|
||||
|
||||
Reference in New Issue
Block a user