Skip to content

Commit

Permalink
Updated selection()
Browse files Browse the repository at this point in the history
  • Loading branch information
RhetTbull committed Sep 12, 2020
1 parent c563596 commit a2f0630
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions photoscript/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ def frontmost(self):
def selection(self):
""" List of Photo objects for currently selected photos or [] if no selection """
uuids = run_script("_photoslibrary_get_selection")
if isinstance(uuids, list):
return [Photo(uuid) for uuid in uuids]
else:
return []
return [Photo(uuid) for uuid in uuids]

@property
def favorites(self):
Expand Down

0 comments on commit a2f0630

Please sign in to comment.