mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-13 07:36:32 +00:00
[ATL-1556] Sort board families in Tool menu (#486)
* [ATL-1556] Sort board families in Tool menu
This commit is contained in:
parent
0f82e91380
commit
d3d6ba8176
@ -185,7 +185,9 @@ PID: ${PID}`;
|
|||||||
// Platform submenu
|
// Platform submenu
|
||||||
const platformMenuPath = [...boardsPackagesGroup, packageId];
|
const platformMenuPath = [...boardsPackagesGroup, packageId];
|
||||||
// Note: Registering the same submenu twice is a noop. No need to group the boards per platform.
|
// Note: Registering the same submenu twice is a noop. No need to group the boards per platform.
|
||||||
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel);
|
this.menuModelRegistry.registerSubmenu(platformMenuPath, packageLabel, {
|
||||||
|
order: packageName.toLowerCase(),
|
||||||
|
});
|
||||||
|
|
||||||
const id = `arduino-select-board--${fqbn}`;
|
const id = `arduino-select-board--${fqbn}`;
|
||||||
const command = { id };
|
const command = { id };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user