mirror of
https://gitlab.com/cc-ru/ocelot/ocelot-desktop.git
synced 2025-12-20 11:09:20 +01:00
Sort CPU architecture names
This commit is contained in:
parent
f2221543f3
commit
3149bbcaed
@ -64,7 +64,7 @@ class CPUSlot(owner: Inventory#Slot, node: ComputerNode, val tier: Int) extends
|
|||||||
val cpu = item.get
|
val cpu = item.get
|
||||||
|
|
||||||
menu.addEntry(new ContextMenuSubmenu("Set architecture") {
|
menu.addEntry(new ContextMenuSubmenu("Set architecture") {
|
||||||
for (arch <- cpu.allArchitectures) {
|
for (arch <- cpu.allArchitectures.toList.sortBy(MachineAPI.getArchitectureName)) {
|
||||||
val name = MachineAPI.getArchitectureName(arch) +
|
val name = MachineAPI.getArchitectureName(arch) +
|
||||||
(if (arch == cpu.architecture) " (current)" else "")
|
(if (arch == cpu.architecture) " (current)" else "")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user