fix keyboard type store

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2022-12-27 17:49:32 +08:00
Unverified
parent ebdead8766
commit 50c33450b9
2 changed files with 39 additions and 40 deletions

View File

@@ -1024,7 +1024,9 @@ impl LocalConfig {
}
pub fn set_kb_layout_type(kb_layout_type: String) {
LOCAL_CONFIG.write().unwrap().kb_layout_type = kb_layout_type
let mut config = LOCAL_CONFIG.write().unwrap();
config.kb_layout_type = kb_layout_type;
config.store();
}
pub fn get_size() -> Size {