fix: panel is not focus

This commit is contained in:
2025-02-06 09:11:44 +07:00
parent a941e844b9
commit 193aaa646e
6 changed files with 21 additions and 60 deletions

View File

@@ -20,7 +20,7 @@ use state::{get_client, initialize_client};
use std::{borrow::Cow, collections::HashSet, ops::Deref, str::FromStr, sync::Arc, time::Duration};
use tokio::sync::mpsc;
use ui::{theme::Theme, Root};
use views::{app::AppView, onboarding, startup::Startup};
use views::{app, onboarding, startup::Startup};
mod asset;
mod views;
@@ -311,8 +311,7 @@ fn main() {
if let Some(root) = this.root() {
cx.update_entity(&root, |this: &mut Root, cx| {
this.set_view(
cx.new(|cx| AppView::new(profile, window, cx))
.into(),
app::init(profile, window, cx).into(),
cx,
);
});