Skip to content

Commit

Permalink
it needs to return because if the notification is resumend it will tr…
Browse files Browse the repository at this point in the history
…y to create an image without name
  • Loading branch information
estebanlm committed Jun 12, 2024
1 parent e338916 commit a6b3ca4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ PhLCreateTemplateFromImageCommand >> confirmTemplateOverride [
PhLCreateTemplateFromImageCommand >> execute [
| name |
name := self newTemplateName.
name ifNil: [ PhLCommandCancellation signal ].
name ifNil: [ ^ PhLCommandCancellation signal ].
self imagesPresenter createLocalTemplateFromSelectionNamed: name.
"ensure the template is created before removing the image"
(willRemoveImage and: [self imagesPresenter templateRepository hasLocalTemplateNamed: name])
Expand Down

0 comments on commit a6b3ca4

Please sign in to comment.