Commit 5e4da5b
committed
Fix WinBar menus in GUI, and off-by-one error when adding new menus
Fix WinBar menus to not create menu items in the main menu bar.
Also, fix an off-by-one error when adding new menu items to the main
menu when adding the menus using priorities to insert them in the
middle. This also allowed adding a menu (when using index 0) that goes
before the main "MacVim" app menu which is quite wrong as the app menu
should always be the first one.
Fix #9181 parent 14d9157 commit 5e4da5b
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
1242 | 1243 | | |
1243 | 1244 | | |
1244 | 1245 | | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1245 | 1251 | | |
1246 | 1252 | | |
1247 | 1253 | | |
| |||
1261 | 1267 | | |
1262 | 1268 | | |
1263 | 1269 | | |
1264 | | - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1265 | 1274 | | |
1266 | 1275 | | |
1267 | 1276 | | |
| |||
1311 | 1320 | | |
1312 | 1321 | | |
1313 | 1322 | | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
1314 | 1328 | | |
1315 | 1329 | | |
1316 | 1330 | | |
| |||
0 commit comments