Update to new goprogram version
This commit is contained in:
parent
7bd9570bc0
commit
873fdcd5c2
106 changed files with 478 additions and 825 deletions
|
|
@ -48,8 +48,8 @@ func (mi MenuItem) ReplaceWith(new MenuItem, items []MenuItem) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func MenuItemSort(a, b MenuItem) bool {
|
||||
return a.Priority < b.Priority
|
||||
func MenuItemSort(a, b MenuItem) int {
|
||||
return int(a.Priority) - int(b.Priority)
|
||||
}
|
||||
|
||||
type MenuPriority int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue