host: AlertsConfig and ThemeConfig live in ungated modules, so the host compiles and tests without the tauri feature

This commit is contained in:
CRTkafa 2026-10-01 16:05:27 +07:00
parent 13ac2827fe
commit 75d507ba8c
4 changed files with 25 additions and 19 deletions

View file

@ -11,14 +11,7 @@ use crate::tabs::deliver_script;
use std::sync::{Mutex, MutexGuard};
use tauri::{AppHandle, Manager, Webview};
/// What an app declares about its alerts: where they are saved and how the page runtime takes the
/// keywords (`window.<global>.<member>.set(keywords)`, else parked in `window.<queue>`).
#[derive(Clone, Copy, Debug)]
pub struct AlertsConfig {
pub file: &'static str,
pub member: &'static str,
pub queue: &'static str,
}
pub use crate::alerts::AlertsConfig;
struct AlertState(Mutex<AlertSettings>);