Skip to content

Commit

Permalink
Update session log initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Hernán Morales Durand committed Nov 21, 2024
1 parent 021023e commit dc17239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ StSettingsTrackerTest >> submitPresenter: settingItem [
StSettingsTrackerTest >> tearDown [

self class codeSupportAnnouncer unsubscribe: self.
"Clean SettingUpdated subscriptions"
(self class codeSupportAnnouncer subscriptions subscriptionsHandling: SettingUpdated new)
do: [ : s | self class codeSupportAnnouncer removeSubscription: s ].
tracker sessionLog ifNotEmpty: [ : collection | collection removeLast ].
Expand Down
10 changes: 5 additions & 5 deletions src/NewTools-SettingsBrowser/StSettingsTracker.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ StSettingsTracker class >> reset [
{ #category : 'initialization' }
StSettingsTracker class >> sessionLog [

^ SessionLog
^ SessionLog
ifNil: [
self initialize.
SessionLog ]
]

{ #category : 'initialization' }
Expand All @@ -49,10 +52,7 @@ StSettingsTracker >> initialize [
{ #category : 'initialization' }
StSettingsTracker >> sessionLog [

^ SessionLog
ifNil: [
self class initialize.
SessionLog ]
^ self class sessionLog
]

{ #category : 'initialization' }
Expand Down

0 comments on commit dc17239

Please sign in to comment.