Skip to content

Commit ca988d3

Browse files
committed
AstalTray: isMenu default to true
close #306
1 parent 4b283b0 commit ca988d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/tray/trayItem.vala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ public class TrayItem : Object {
122122
* If set, this only supports the menu, so showing the menu should be prefered
123123
* over calling [method@AstalTray.TrayItem.activate].
124124
*/
125-
public bool is_menu { get { return proxy.ItemIsMenu ;} }
125+
public bool is_menu {
126+
get {
127+
return proxy.ItemIsMenu || proxy.get_cached_property("ItemIsMenu") == null;
128+
}
129+
}
126130

127131
/**
128132
* The icon theme path, where to look for the [property@AstalTray.TrayItem:icon-name].

0 commit comments

Comments
 (0)