support cookies, but with bugs

This commit is contained in:
Julian Freeman
2026-01-13 18:15:58 -04:00
parent 1554be25d2
commit bbcb10b3ca
6 changed files with 75 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ use chrono::{DateTime, Utc};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Settings {
pub download_path: String,
pub cookies_path: Option<String>,
pub theme: String, // 'light', 'dark', 'system'
pub last_updated: Option<DateTime<Utc>>,
}
@@ -19,6 +20,7 @@ impl Default for Settings {
// but for default struct we can keep it empty or a placeholder.
Self {
download_path: "".to_string(),
cookies_path: None,
theme: "system".to_string(),
last_updated: None,
}