sort custom category menu ("delete a category") alphabetically

snap7
jmoenig 2021-10-14 13:14:41 +02:00
rodzic b084915590
commit fc586e7af4
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -44,6 +44,7 @@
* gui, byob, objects: scroll custom category buttons if there are more than 6
* gui, byob: scroll selected custom category button into view
* gui: fixed "show categories" setting display
* gui: sort custom category menu ("delete a category") alphabetically
### 2021-10-12
* scenes, store: store single palette setting per project (for making extensions)

Wyświetl plik

@ -4996,7 +4996,11 @@ IDE_Morph.prototype.deleteUserCategory = function () {
null,
this
);
SpriteMorph.prototype.customCategories.forEach((clr, name) =>
// sort alphabetically
Array.from(
SpriteMorph.prototype.customCategories.keys()
).sort().forEach(name =>
menu.addItem(
name,
name,