fix: enhance hotkey handling in lightweight mode and improve window management

This commit is contained in:
wonfen
2025-06-15 17:40:59 +08:00
parent 8bc451ff08
commit dd0e9d4e1b
3 changed files with 76 additions and 49 deletions

View File

@@ -119,6 +119,10 @@ pub fn exit_lightweight_mode() {
set_lightweight_mode(false);
logging!(info, Type::Lightweight, true, "正在退出轻量模式");
// macOS激活策略
#[cfg(target_os = "macos")]
AppHandleManager::global().set_activation_policy_regular();
// 重置UI就绪状态
crate::utils::resolve::reset_ui_ready();
}