@@ -49,7 +49,7 @@ def load_files(self, folder):
49
49
50
50
self .current_folder = folder
51
51
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" ))]
53
53
54
54
columns = int (self .root .winfo_width () / 150 )
55
55
if columns < 1 :
@@ -103,8 +103,10 @@ def load_thumbnail(self, file_path):
103
103
image = Image .open (os .path .join (base_path , "icons" , "source.png" ))
104
104
elif os .path .isdir (file_path ):
105
105
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" ) :
107
107
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" ))
108
110
109
111
if image :
110
112
image .thumbnail ((50 , 50 ))
0 commit comments