fix: customize global shortcuts (#108)

This commit is contained in:
lencx
2022-12-30 23:46:30 +08:00
parent b3bd54ce81
commit dc0c78fee2
4 changed files with 46 additions and 22 deletions

View File

@@ -18,6 +18,7 @@ pub const DEFAULT_CHAT_CONF: &str = r#"{
"stay_on_top": false,
"theme": "Light",
"titlebar": true,
"global_shortcut": "",
"hide_dock_icon": false,
"default_origin": "https://chat.openai.com",
"origin": "https://chat.openai.com",
@@ -28,6 +29,7 @@ pub const DEFAULT_CHAT_CONF_MAC: &str = r#"{
"stay_on_top": false,
"theme": "Light",
"titlebar": false,
"global_shortcut": "",
"hide_dock_icon": false,
"default_origin": "https://chat.openai.com",
"origin": "https://chat.openai.com",
@@ -61,6 +63,7 @@ pub struct ChatConfJson {
pub origin: String,
pub ua_window: String,
pub ua_tray: String,
pub global_shortcut: Option<String>,
}
impl ChatConfJson {