live metadata display in UI

This commit is contained in:
2026-08-07 03:27:40 +08:00
parent 81e03ba152
commit 151ff9e5c6
7 changed files with 148 additions and 20 deletions
+7 -1
View File
@@ -9,12 +9,16 @@ mod ufa;
mod user;
mod windowing;
use tauri::Manager;
async fn launch_app(app: &tauri::App) -> Result<(), Box<dyn std::error::Error>> {
let handle = app.handle();
db::init(handle).await?;
keypair::init(handle).await?;
network::init(handle).await?;
ufa::init();
app.manage(ufa::ForegroundAppState::default());
app.manage(cursor::CursorState::default());
ufa::init(handle);
cursor::init(handle);
windowing::init(handle);
Ok(())
@@ -68,6 +72,8 @@ fn specta_builder() -> tauri_specta::Builder<tauri::Wry> {
remotes::RemotesChanged,
profile::ProfileChanged,
network::NetworkStatusChanged,
cursor::CursorPositionChanged,
ufa::ForegroundAppChanged,
])
}