mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Always use SecretService asynchronously
This commit is contained in:
parent
5d06ec9faf
commit
9256e60122
2 changed files with 71 additions and 62 deletions
|
|
@ -74,7 +74,7 @@ impl Backend {
|
|||
}
|
||||
}
|
||||
|
||||
if let Some(data) = secure::load_login_data()? {
|
||||
if let Some(data) = Self::load_login_data().await? {
|
||||
self.client.set_login_data(data);
|
||||
}
|
||||
|
||||
|
|
@ -95,7 +95,7 @@ impl Backend {
|
|||
|
||||
/// Set the user credentials to use.
|
||||
pub async fn set_login_data(&self, data: LoginData) -> Result<()> {
|
||||
secure::store_login_data(data.clone()).await?;
|
||||
Self::store_login_data(data.clone()).await?;
|
||||
self.client.set_login_data(data);
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue