Skip to content

Commit 2921877

Browse files
authored
Merge pull request #18 from ChocoScaff/all_files_view
All files view
2 parents e5c1108 + 904cac1 commit 2921877

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

assetsBrowser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def open_file_explorer(self):
478478
repo_name = "SourceSDK-"
479479

480480
# Replace this with the version of your local software
481-
local_version = "0.5.2"
481+
local_version = "1.0.0"
482482

483483
github_version = test.get_latest_release_version(repo_owner, repo_name)
484484

file.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def load_thumbnail(self, file_path, parent=""):
218218
if file_icons[file_extension]:
219219
image = Image.open(os.path.join(base_path, "icons", file_icons[file_extension]))
220220
else:
221-
image = Image.open(parent + "/" + file_path)
221+
image = Image.open(os.path.join(parent,file_path))
222222
elif os.path.isdir(file_path):
223223
image = Image.open(os.path.join(base_path, "icons", "fileexplorer.png"))
224224

@@ -345,11 +345,6 @@ def load_files_grid_tree(self, folder):
345345
frame.grid_propagate(False)
346346
frame.grid(row=row, column=col, padx=5, pady=5)
347347

348-
file_path = os.path.join(self.current_folder, file)
349-
frame = ttk.Frame(self.scroll_frame, width=140, height=140, relief="solid", borderwidth=1)
350-
frame.grid_propagate(False)
351-
frame.grid(row=row, column=col, padx=5, pady=5)
352-
353348
if self.enableTree == True:
354349
label = ttk.Label(frame, text=file, wraplength=130, anchor="center")
355350
else:

0 commit comments

Comments
 (0)