[mob] Disable global ml flag

This commit is contained in:
Neeraj Gupta
2024-08-21 21:51:35 +05:30
parent 8e263a3b66
commit 58dee0ef5a

View File

@@ -203,10 +203,8 @@ class _MachineLearningSettingsPageState
await SemanticSearchService.instance.init();
unawaited(MLService.instance.runAllML(force: true));
} else {
// todo: Take a call if we should disable ML from other devices as well
// when the user turns off indexing on mobile
// await UserRemoteFlagService.instance
// .setBoolValue(UserRemoteFlagService.mlEnabled, false);
await UserRemoteFlagService.instance
.setBoolValue(UserRemoteFlagService.mlEnabled, false);
}
if (mounted) {
setState(() {});