Support updating tray labels in an efficient manner

This commit is contained in:
Lea Anthony
2021-01-16 11:35:49 +11:00
parent 7ac8cc6b8b
commit 47bca0be88
17 changed files with 155 additions and 38 deletions

View File

@@ -192,6 +192,10 @@ func (c *Client) SetTrayMenu(trayMenuJSON string) {
C.SetTrayMenu(c.app.app, c.app.string2CString(trayMenuJSON))
}
func (c *Client) UpdateTrayMenuLabel(JSON string) {
C.UpdateTrayMenuLabel(c.app.app, c.app.string2CString(JSON))
}
func (c *Client) UpdateContextMenu(contextMenuJSON string) {
C.UpdateContextMenu(c.app.app, c.app.string2CString(contextMenuJSON))
}