Partially introduce context menu changes back

This commit is contained in:
Lea Anthony
2021-01-12 21:20:08 +11:00
parent 0f7acd39fc
commit 1921862b53
12 changed files with 71 additions and 33 deletions

View File

@@ -36,3 +36,15 @@ func (c *ContextMenus) RemoveByID(id string) bool {
}
return false
}
type ContextMenu struct {
ID string
Menu *Menu
}
func NewContextMenu(ID string, menu *Menu) *ContextMenu {
return &ContextMenu{
ID: ID,
Menu: menu,
}
}