Tunglies
2025-06-17 08:24:10 +08:00
parent ea71181692
commit 4068e5ec9c
2 changed files with 3 additions and 4 deletions

View File

@@ -296,7 +296,6 @@ impl IVerge {
} }
/// 配置修正后重新加载配置 /// 配置修正后重新加载配置
fn reload_config_after_fix(updated_config: IVerge) -> Result<()> { fn reload_config_after_fix(updated_config: IVerge) -> Result<()> {
use crate::config::Config; use crate::config::Config;

View File

@@ -330,9 +330,9 @@ impl Hotkey {
let func = iter.next(); let func = iter.next();
let key = iter.next(); let key = iter.next();
if func.is_some() && key.is_some() { if let (Some(func), Some(key)) = (func, key) {
let func = func.unwrap().trim(); let func = func.trim();
let key = key.unwrap().trim(); let key = key.trim();
map.insert(key, func); map.insert(key, func);
} }
}); });