(&self, key: Option<String>)
| 166 | } |
| 167 | |
| 168 | fn update_accounts(&self, key: Option<String>) -> Result<MainCommandResponse> { |
| 169 | let app_handle = self.app_handle.clone(); |
| 170 | if let Some(key) = key { |
| 171 | tauri::async_runtime::spawn(async move { |
| 172 | let provider_handler: State<ProviderHandler> = app_handle.state(); |
| 173 | let _ = provider_handler.request_account_status(key).await; |
| 174 | }); |
| 175 | } |
| 176 | Ok(MainCommandResponse::UpdateAccounts(true)) |
| 177 | } |
| 178 | |
| 179 | #[tracing::instrument(level = "debug", skip(self, command))] |
| 180 | async fn send_ui_request(&self, mut command: MainCommand) -> Result<MainCommandResponse> { |
no test coverage detected