fix(status-area): implement activate on left-click with menu fallback

This commit is contained in:
夜未央,天将亮 2025-12-30 15:27:24 +08:00 committed by GitHub
parent 2f1b47f2b8
commit 9db4ebdc2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 57 additions and 14 deletions

View file

@ -50,7 +50,7 @@ impl StatusNotifierItem {
let menu_path = item_proxy.menu().await;
// Why would an item say it has no menu but provide a menu path? Slack does this.
let mut is_menu = menu_path.is_ok() || is_menu.unwrap_or(false);
let is_menu = menu_path.is_ok() || is_menu.unwrap_or(false);
if !is_menu {
return Ok(Self {