Skip to content

Commit

Permalink
Miniscule icon getter simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
MrClock8163 committed Dec 23, 2024
1 parent 58e8152 commit 4ba80d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Arma3ObjectBuilder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@
addon_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
addon_icons = {}


def get_icon(name):
icon = 0
try:
icon = addon_icons[addon_prefs.icon_theme.lower()][name].icon_id
return addon_icons[addon_prefs.icon_theme.lower()][name].icon_id
except Exception:
pass
return 0

return icon

def get_prefs():
return addon_prefs
Expand Down

0 comments on commit 4ba80d8

Please sign in to comment.