Import command: Inform user if he selects a directory instead of an image.
MODIFY
src/PharoLauncher-Core.package/PhLImportImageCommand.class/instance/importImage.st
src/PharoLauncher-Core.package/PhLImportImageCommand.class/instance/importImage.st
@@ -6,7 +6,10 @@ importImage
extensions: #('image')
path: FileLocator home
preview: false.
- imagePath ifNil: [ ^ self ].
- imagePath asFileReference isDirectory
- ifTrue: [ ^ self ].
+ imagePath ifNil: [
+ self inform: 'No path selected. Import failed.'.
+ ^ self ].
+ imagePath asFileReference isDirectory ifTrue: [
+ self inform: 'The file selected is a directory and not a Pharo image. Import failed.'.
+ ^ self ].
self import: imagePath
\ No newline at end of file

Import command: Inform user if he selects a directory instead of an image.