Skip to content

Commit

Permalink
Merge pull request #1343 from sbragagnolo/autodeprecation
Browse files Browse the repository at this point in the history
Auto deprecation magic business
  • Loading branch information
guillep authored Jun 5, 2020
2 parents c13c7ee + e2d83a1 commit 62e8731
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Iceberg-TipUI/IceTipRepositoryBrowser.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ IceTipRepositoryBrowser class >> onRepository: aRepository [
{ #category : #'event handling' }
IceTipRepositoryBrowser >> commitishSelected: ann [
| selection |

ann newSelectedRowIndexes
ifNotEmpty: [ :indexes |
ann newSelectedIndexes
ifNotEmpty: [ :indexes |
selection := sidebarTree widget dataSource elementAt: indexes first.
(selection depth = 0 or: [ selection hasChildren ])
ifTrue: [ ^ self "just refresh on leafs" ].
(selection depth = 0 or: [ selection hasChildren ])
ifTrue: [ ^ self "just refresh on leafs" ].
historyPanel model: selection data model ]
]

Expand Down Expand Up @@ -116,13 +115,13 @@ IceTipRepositoryBrowser >> newSidebarTreeDataSource [
{ #category : #accessing }
IceTipRepositoryBrowser >> refresh [
self rebuildToolbar.
self sidebarTree widget
in: [ :this |
this selectRowIndexes: #().
this dataSource
rootForItems: self model repositoryModelsByGroup;
expandRoots ];
refresh.
self sidebarTree widget
in: [ :this |
this selectIndexes: #().
this dataSource
rootForItems: self model repositoryModelsByGroup;
expandRoots ];
refresh
]

{ #category : #'private factory' }
Expand Down

0 comments on commit 62e8731

Please sign in to comment.