截图模块优化调整

This commit is contained in:
zhongluofeng committed 2026-08-03 17:36:07 +08:00
1 parent f51a7f894e
commit c913379e2b
19 files changed
+1744 -300

No files matched your search

+4
View File
@@ -134,6 +134,10 @@ pub async fn clipboard_save_settings(
// 快捷键变化时重新注册
if settings.shortcut != prev_shortcut {
super::popup::register_shortcut(&app, &settings.shortcut)?;
// 新快捷键非空时确保弹窗窗口已预创建
if !settings.shortcut.trim().is_empty() {
super::popup::ensure_popup_window(&app);
}
}
Ok(())
}