fix keyboard type store

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou committed 2022-12-27 18:16:29 +08:00
1 parent ebdead8766
commit 50c33450b9
2 files changed
+39 -40

No files matched your search

+3 -1
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 {