support cookies, but with bugs
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user