mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix submenu radio processing
This commit is contained in:
parent
f8eb680559
commit
bbb418f98f
1 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,10 @@ func (m *Menu) AddRole(role Role) *Menu {
|
|||
func (m *Menu) processRadioGroups() {
|
||||
var radioGroup []*MenuItem
|
||||
for _, item := range m.items {
|
||||
if item.itemType == submenu {
|
||||
item.submenu.processRadioGroups()
|
||||
continue
|
||||
}
|
||||
if item.itemType == radio {
|
||||
radioGroup = append(radioGroup, item)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue