Merge pull request #314 from zed-industries/auto-connect
Auto-connect to server on startup if credentials are on the keychain
This commit is contained in:
commit
89ead1c44d
2 changed files with 14 additions and 0 deletions
|
@ -346,6 +346,10 @@ impl Client {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn has_keychain_credentials(&self, cx: &AsyncAppContext) -> bool {
|
||||
read_credentials_from_keychain(cx).is_some()
|
||||
}
|
||||
|
||||
#[async_recursion(?Send)]
|
||||
pub async fn authenticate_and_connect(
|
||||
self: &Arc<Self>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue