mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Open with macOS: Fix error when trying to select executable instead of bundle
This commit is contained in:
parent
2f2b246d71
commit
0c226161f2
@ -155,7 +155,7 @@ elif isosx:
|
||||
return sort_key(entry.get('name') or '')
|
||||
|
||||
def finalize_entry(entry):
|
||||
entry['extensions'] = tuple(entry['extensions'])
|
||||
entry['extensions'] = tuple(entry.get('extensions', ()))
|
||||
data = get_icon(entry.pop('icon_file', None), as_data=True, pixmap_to_data=pixmap_to_data)
|
||||
if data:
|
||||
entry['icon_data'] = data
|
||||
|
Loading…
x
Reference in New Issue
Block a user