aboutsummaryrefslogtreecommitdiffstats
path: root/systray.go
diff options
context:
space:
mode:
Diffstat (limited to 'systray.go')
-rw-r--r--systray.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/systray.go b/systray.go
index 33f6172..a55afb1 100644
--- a/systray.go
+++ b/systray.go
@@ -129,6 +129,16 @@ func (item *MenuItem) Disable() {
item.update()
}
+// Hide hides a menu item
+func (item *MenuItem) Hide() {
+ hideMenuItem(item)
+}
+
+// Show shows a previously hidden menu item
+func (item *MenuItem) Show() {
+ showMenuItem(item)
+}
+
// Checked returns if the menu item has a check mark
func (item *MenuItem) Checked() bool {
return item.checked