Skip to content

Commit

Permalink
Update icon recognition for addons
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean28518 committed Sep 7, 2024
1 parent 11b4bf9 commit 505da0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lac/unix/unix_scripts/unix.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,9 @@ def get_config_of_addon(addon):
# remove the " and ' characters from the outer ends of the string
config[key.strip()] = value.strip("'\"\n ")
# Get icon file format
for file in os.listdir(f"addons/{addon}"):
if file.endswith(".png") or file.endswith(".svg") or file.endswith(".jpg") or file.endswith(".webp"):
config["icon_file_format"] = file.split(".")[-1]
for file in os.listdir(f"addons/{addon}"):
if file.endswith(".png") or file.endswith(".svg") or file.endswith(".jpg") or file.endswith(".webp"):
config["icon_file_format"] = file.split(".")[-1]
addon_config_cache[addon] = config
return config

Expand Down

0 comments on commit 505da0c

Please sign in to comment.