(app: &AppHandle)
| 68 | } |
| 69 | |
| 70 | async fn load_ai_experience(app: &AppHandle) -> Option<AIExperienceConfig> { |
| 71 | let app_state = app.try_state::<AppState>()?; |
| 72 | app_state |
| 73 | .config_service |
| 74 | .get_config(Some("app.ai_experience")) |
| 75 | .await |
| 76 | .ok() |
| 77 | } |
| 78 | |
| 79 | pub async fn rebuild_tray_menu_public(app: &AppHandle) { |
| 80 | rebuild_tray_menu(app).await; |
no test coverage detected