summaryrefslogtreecommitdiff
path: root/lib/tray
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2025-03-05 12:42:59 +0100
committernoname <[email protected]>2025-04-25 01:19:20 +1000
commit8c8578c2090e460b74dc04c2000eaaf6adc13d7c (patch)
treec075bd4e88c8155494571ecc413e8614683a7fe4 /lib/tray
parent58a61fa1a79f9265c8ccf4ffbd06460595a53251 (diff)
AstalTray: isMenu default to true
close #306
Diffstat (limited to 'lib/tray')
-rw-r--r--lib/tray/trayItem.vala6
1 files changed, 5 insertions, 1 deletions
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 [[email protected]].
*/
- 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 [[email protected]:icon-name].