debug mode

This commit is contained in:
2026-03-21 00:00:10 +08:00
parent 5165bc2c16
commit 680fd3c617
5 changed files with 29 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ pub use window::open_config_window;
#[derive(Default, Serialize, Deserialize, Clone, Debug, Type)]
pub struct AppConfig {
pub api_base_url: Option<String>,
pub debug_mode: bool,
}
#[derive(Debug, Error)]

View File

@@ -54,6 +54,7 @@ fn sanitize(mut config: AppConfig) -> AppConfig {
pub fn default_app_config() -> AppConfig {
AppConfig {
api_base_url: Some(DEFAULT_API_BASE_URL.to_string()),
debug_mode: false,
}
}