Skip to content

Commit 1a5a530

Browse files
committed
fix
1 parent 12fa1d5 commit 1a5a530

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fileListApp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def load_files(self, folder):
4949

5050
self.current_folder = folder
5151
self.files = [f for f in os.listdir(folder) if os.path.isdir(os.path.join(folder, f)) or f.endswith((
52-
".vmf", ".txt", ".cfg", ".vtf", ".vmt", ".qc", ".mdl", ".vcd", ".res", ".bsp", "dir.vpk", ".tga", ".wav", ".mp3"))]
52+
".vmf", ".txt", ".cfg", ".vtf", ".vmt", ".qc", ".mdl", ".vcd", ".res", ".bsp", "dir.vpk", ".tga", ".wav", ".mp3", ".sln"))]
5353

5454
columns = int(self.root.winfo_width() / 150)
5555
if columns < 1:
@@ -103,8 +103,10 @@ def load_thumbnail(self, file_path):
103103
image = Image.open(os.path.join(base_path, "icons", "source.png"))
104104
elif os.path.isdir(file_path):
105105
image = Image.open(os.path.join(base_path, "icons", "fileexplorer.png"))
106-
elif file_path.endswith(".txt") or file_path.endswith(".res") or file_path.endswith(".vmt") or file_path.endswith(".qc") or file_path.endswith(".smd"):
106+
elif file_path.endswith(".txt") or file_path.endswith(".res") or file_path.endswith(".vmt") or file_path.endswith(".qc") or file_path.endswith(".smd") or file_path.endswith(".cfg"):
107107
image = Image.open(os.path.join(base_path, "icons", "txt.png"))
108+
elif file_path.endswith(".slb"):
109+
image = Image.open(os.path.join(base_path, "icons", "Visual_Studio.png"))
108110

109111
if image:
110112
image.thumbnail((50, 50))

0 commit comments

Comments
 (0)