mirror of
https://github.com/taigrr/wails.git
synced 2026-04-17 12:15:02 -07:00
Partially introduce context menu changes back
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user