Material: editor, sort cards in combo box

This commit is contained in:
Bernd Hahnebach
2019-02-20 07:43:54 +01:00
committed by wmayer
parent a53ffb729c
commit 212458a8ea

View File

@@ -233,7 +233,7 @@ class MaterialEditor:
self.cards = {}
for p in self.resources:
if os.path.exists(p):
for f in os.listdir(p):
for f in sorted(os.listdir(p)):
b, e = os.path.splitext(f)
if e.upper() == ".FCMAT":
self.cards[b] = p + os.sep + f