fix(tui): fix launch panic, highlight search matches
This commit is contained in:
1 parent
41a63e16c4
commit
14fd9d1ebc
4 files changed
+49
-6
No files matched your search
@@ -239,9 +239,7 @@ pub async fn launch(
|
||||
Some(acc) => {
|
||||
let token = match acc.account_type {
|
||||
crate::auth::AccountType::Microsoft => {
|
||||
match tokio::runtime::Handle::current()
|
||||
.block_on(crate::auth::refresh_and_get_token(acc))
|
||||
{
|
||||
match crate::auth::refresh_and_get_token(acc).await {
|
||||
Ok(t) => t,
|
||||
Err(e) => {
|
||||
tracing::error!("Token refresh failed: {e}");
|
||||
|
||||
Reference in new issue
Block a user