Skip to content

Commit

Permalink
Fixes #691
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Aug 8, 2024
1 parent ec79aed commit 7b9bb7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/PharoLauncher-Core/PhLLaunchImageCommand.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ PhLLaunchImageCommand >> launchConfigurationOfImage: aPhLImage [
PhLLaunchImageCommand >> launchImage: aPhLImage [
| process launchConfig |

self imagesPresenter ensurePharoVersion.
self imagesPresenter ensurePharoVersionFor: aPhLImage.
[ launchConfig := self launchConfigurationOfImage: aPhLImage.
launchConfig useSettings: useSettings.
process := aPhLImage launchWithConfiguration: launchConfig ]
Expand Down
8 changes: 3 additions & 5 deletions src/PharoLauncher-Spec2/PhLImagesPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -234,16 +234,14 @@ PhLImagesPresenter >> ensure: aBoolean [
]

{ #category : #computing }
PhLImagesPresenter >> ensurePharoVersion [
| image |
image := self singleImage.
[ image ensurePharoVersion ]
PhLImagesPresenter >> ensurePharoVersionFor: anImage [
[ anImage ensurePharoVersion ]
on: PhLImageVersionFileNotFound
do: [ :error | | presenter |
presenter := PhLPharoVersionChooserPresenter newApplication: self application.
presenter openModal.
presenter version ifNil: [ error pass ].
image versionFile
anImage versionFile
writeStreamDo: [ :stream | stream nextPutAll: presenter version ] ]
]

Expand Down

0 comments on commit 7b9bb7d

Please sign in to comment.