refactoring of app.rs and relevant flow files

This commit is contained in:
2026-01-25 23:10:09 +08:00
parent d1ef0a010f
commit 76943f3362
4 changed files with 49 additions and 25 deletions

View File

@@ -22,11 +22,12 @@ use tracing_subscriber::{self, util::SubscriberInitExt};
static APP_HANDLE: std::sync::OnceLock<tauri::AppHandle<tauri::Wry>> = std::sync::OnceLock::new();
mod app;
mod commands;
mod lifecycle;
mod models;
mod remotes;
mod services;
mod startup;
mod state;
mod system_tray;
mod utilities;
@@ -86,7 +87,7 @@ fn setup_fdoll() -> Result<(), tauri::Error> {
open_splash_window();
state::init_fdoll_state(Some(_guard));
async_runtime::spawn(async move { app::start_fdoll().await });
async_runtime::spawn(async move { lifecycle::start_fdoll().await });
Ok(())
}