mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-03 11:34:17 +00:00
chore: send local ai state
This commit is contained in:
parent
e4e75acdac
commit
22b9acf386
@ -310,10 +310,7 @@ impl LocalAIController {
|
||||
let key = local_ai_enabled_key(&workspace_id);
|
||||
let enabled = !self.store_preferences.get_bool(&key).unwrap_or(true);
|
||||
self.store_preferences.set_bool(&key, enabled)?;
|
||||
|
||||
if self.resource.is_resource_ready().await {
|
||||
self.toggle_plugin(enabled).await?;
|
||||
}
|
||||
self.toggle_plugin(enabled).await?;
|
||||
|
||||
Ok(enabled)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user