mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-02 19:02:12 +02:00
Support icon sorting in grid.
This commit is contained in:
parent
66c6e8fab7
commit
51c0f55e61
2 changed files with 4 additions and 0 deletions
BIN
doc/grid.png
BIN
doc/grid.png
Binary file not shown.
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 74 KiB |
|
@ -147,3 +147,7 @@ class IconCollection:
|
|||
|
||||
def __len__(self) -> int:
|
||||
return len(self.icons)
|
||||
|
||||
def sort(self) -> None:
|
||||
"""Sort icon list."""
|
||||
self.icons = sorted(self.icons)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue