mirror of
https://github.com/enzet/map-machine.git
synced 2025-06-06 04:41:54 +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:
|
def __len__(self) -> int:
|
||||||
return len(self.icons)
|
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