fix: app loading speed (#6070)

This commit is contained in:
Prospector
2026-05-11 13:12:44 -07:00
committed by GitHub
parent 840b556c51
commit 6d3fdb680c
4 changed files with 64 additions and 46 deletions

View File

@@ -95,6 +95,12 @@ impl State {
.await?;
tokio::task::spawn(async move {
fs_watcher::watch_profiles_init(
&state.file_watcher,
&state.directories,
)
.await;
let res = tokio::try_join!(
state.discord_rpc.clear_to_default(true),
Profile::refresh_all(),
@@ -175,7 +181,6 @@ impl State {
tracing::info!("Initializing file watcher");
let file_watcher = fs_watcher::init_watcher().await?;
fs_watcher::watch_profiles_init(&file_watcher, &directories).await;
let process_manager = ProcessManager::new();