fix(macos): prevent menu bar flicker when closing the window

Keep the application activation policy unchanged when hiding the main window. Lightweight mode still hides the Dock icon.

Closes #8319
This commit is contained in:
Tunglies
2026-11-01 15:33:26 +08:00
parent 8e9832712a
commit 12f842d038
2 changed files with 0 additions and 4 deletions
-1
View File
@@ -316,7 +316,6 @@ pub async fn hide() {
{
let _ = window.hide();
}
handle::Handle::global().set_activation_policy_accessory();
}
#[cfg(test)]
-3
View File
@@ -289,9 +289,6 @@ pub fn run() -> std::process::ExitCode {
}
pub fn handle_window_close(api: &tauri::WindowEvent) {
#[cfg(target_os = "macos")]
handle::Handle::global().set_activation_policy_accessory();
if core::handle::Handle::global().is_exiting() {
return;
}