docs(jsonrpc): update documentation for select_account and get_selected_account_id (#6483)

there are not really unused, desktop uses them

also see #4474
This commit is contained in:
Simon Laux
2025-01-27 22:29:28 +01:00
committed by GitHub
parent a563c4851c
commit 3b6369a8c8

View File

@@ -212,14 +212,12 @@ impl CommandApi {
self.accounts.read().await.get_all()
}
/// Select account id for internally selected state.
/// TODO: Likely this is deprecated as all methods take an account id now.
/// Select account in account manager, this saves the last used account to accounts.toml
async fn select_account(&self, id: u32) -> Result<()> {
self.accounts.write().await.select_account(id).await
}
/// Get the selected account id of the internal state..
/// TODO: Likely this is deprecated as all methods take an account id now.
/// Get the selected account from the account manager (on startup it is read from accounts.toml)
async fn get_selected_account_id(&self) -> Option<u32> {
self.accounts.read().await.get_selected_account_id()
}