auto update policy

This commit is contained in:
tk103331
2023-01-05 10:39:46 +08:00
parent aa98d7dd2a
commit f646684f4d
8 changed files with 105 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ pub const GITHUB_PROMPTS_CSV_URL: &str =
"https://raw.githubusercontent.com/f/awesome-chatgpt-prompts/main/prompts.csv";
pub const DEFAULT_CHAT_CONF: &str = r#"{
"stay_on_top": false,
"auto_check_update": true,
"auto_update": "Prompt",
"theme": "Light",
"titlebar": true,
"global_shortcut": "",
@@ -30,7 +30,7 @@ pub const DEFAULT_CHAT_CONF: &str = r#"{
}"#;
pub const DEFAULT_CHAT_CONF_MAC: &str = r#"{
"stay_on_top": false,
"auto_check_update": true,
"auto_update": "Prompt",
"theme": "Light",
"titlebar": false,
"global_shortcut": "",
@@ -59,10 +59,10 @@ pub struct ChatConfJson {
pub titlebar: bool,
pub hide_dock_icon: bool,
// macOS and Windows
// macOS and Windows, Light/Dark/System
pub theme: String,
pub auto_check_update: bool,
// auto update policy, Prompt/Silent/Disable
pub auto_update: String,
pub stay_on_top: bool,
pub default_origin: String,
pub origin: String,