trivial: Add missing ifdef for AS_ICON_KIND_LOCAL
Fix screenshot loading with --details

Make sure to refine the app that's passed in to the details panel before
attempting to load the screenshots.
Revert "trivial: Add missing ifdef for AS_ICON_KIND_LOCAL"

The whole function was already guarded by #if AS_CHECK_VERSION(0,3,1).

This reverts commit d081e1b2c485bd6a71e464eb6b7affd5196a36bf.