Index: packagerChrome.py |
=================================================================== |
--- a/packagerChrome.py |
+++ b/packagerChrome.py |
@@ -81,23 +81,28 @@ |
icons = metadata.get('general', opt).split() |
if not icons: |
continue |
if len(icons) == 1: |
# ... = icon.png |
icon, popup = icons[0], None |
- elif len(icons) == 2: |
- # ... = icon.png popup.html |
- icon, popup = icons |
+ elif re.search('\.html$', icons[-1]): |
tlucas
2017/11/14 16:10:22
Nit: since this is simply a test if icons[-1] ends
Manish Jethani
2017/11/14 18:40:10
Done.
|
+ if len(icons) == 2: |
+ # ... = icon.png popup.html |
+ icon, popup = icons |
+ else: |
+ # ... = icon-19.png icon-38.png popup.html |
+ popup = icons.pop() |
+ icon = makeIcons(files, icons) |
else: |
- # ... = icon-19.png icon-38.png popup.html |
- popup = icons.pop() |
+ # ... = icon-16.png icon-32.png icon-48.png |
icon = makeIcons(files, icons) |
+ popup = None |
templateData[opt] = {'icon': icon, 'popup': popup} |
if metadata.has_option('general', 'icons'): |
templateData['icons'] = makeIcons(files, |
metadata.get('general', 'icons').split()) |
if metadata.has_option('general', 'permissions'): |