fix: panel is not focus
This commit is contained in:
@@ -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,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user