Skip to content

Commit

Permalink
Merge pull request pharo-vcs#1746 from pharo-vcs/fixes
Browse files Browse the repository at this point in the history
Fixes
  • Loading branch information
jecisc authored Nov 21, 2023
2 parents c4d6283 + a7478c7 commit 78ca3d4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Iceberg-TipUI/IceTipCommitBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ IceTipCommitBrowser >> initialize [

super initialize.
saveAction := IceTipSaveImageAction new
context: self;
yourself
]

{ #category : 'initialization' }
Expand Down
4 changes: 3 additions & 1 deletion Iceberg-TipUI/IceTipRepositoriesBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ IceTipRepositoriesBrowser >> addLibGitNotAvailableWarning [

notifyPanel layout add: (notifyPanel newLabel
label: 'There is no libgit2 available in your system! Please verify everything is fine before continue.';
yourself)
yourself).
notifyPanel show
]

{ #category : 'initialization' }
Expand Down Expand Up @@ -170,6 +171,7 @@ IceTipRepositoriesBrowser >> initializePresenters [
notifyPanel := self newPresenter.
notifyPanel layout: SpBoxLayout newVertical.
notifyPanel addStyle: 'libgit2NotAvailable'.
notifyPanel hide.

repositoryNotebook := self newNotebook
]
Expand Down
17 changes: 16 additions & 1 deletion Iceberg-TipUI/IceTipSaveImageAction.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,29 @@ I'm used by the presenter that prepares the commit.
Class {
#name : 'IceTipSaveImageAction',
#superclass : 'Object',
#instVars : [
'context'
],
#category : 'Iceberg-TipUI-Commands',
#package : 'Iceberg-TipUI',
#tag : 'Commands'
}

{ #category : 'accessing' }
IceTipSaveImageAction >> context [

^ context
]

{ #category : 'accessing' }
IceTipSaveImageAction >> context: anObject [

context := anObject
]

{ #category : 'execution' }
IceTipSaveImageAction >> execute [

Smalltalk saveSession.
SpApplication defaultApplication newInform title: 'Image automatically saved'; openModal
self context inform: 'Image automatically saved'
]

0 comments on commit 78ca3d4

Please sign in to comment.