From 8c8578c2090e460b74dc04c2000eaaf6adc13d7c Mon Sep 17 00:00:00 2001 From: kotontrion Date: Wed, 5 Mar 2025 12:42:59 +0100 Subject: AstalTray: isMenu default to true close #306 --- lib/tray/trayItem.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/tray/trayItem.vala') diff --git a/lib/tray/trayItem.vala b/lib/tray/trayItem.vala index 1a26d8a..dbfbea8 100644 --- a/lib/tray/trayItem.vala +++ b/lib/tray/trayItem.vala @@ -122,7 +122,11 @@ public class TrayItem : Object { * If set, this only supports the menu, so showing the menu should be prefered * over calling [method@AstalTray.TrayItem.activate]. */ - public bool is_menu { get { return proxy.ItemIsMenu ;} } + public bool is_menu { + get { + return proxy.ItemIsMenu || proxy.get_cached_property("ItemIsMenu") == null; + } + } /** * The icon theme path, where to look for the [property@AstalTray.TrayItem:icon-name]. -- cgit v1.2.3