feat: Enhance application with logging, configuration management, and system tray support

first working gui windows with configs
This commit is contained in:
2026-01-18 21:36:59 +01:00
parent cb14fe0989
commit efbbccb36f
14 changed files with 357 additions and 64 deletions

View File

@@ -0,0 +1,19 @@
use std::sync::Mutex;
use tauri::{App, Manager, Runtime};
pub struct AppState {
#[allow(dead_code)]
pub ollama_ready: Mutex<bool>,
}
impl AppState {
pub fn new() -> Self {
Self {
ollama_ready: Mutex::new(false),
}
}
}
pub fn init_state<R: Runtime>(app: &mut App<R>) {
app.manage(AppState::new());
}