Skip to content

Commit

Permalink
cache settings nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jul 5, 2024
1 parent 45fa6d4 commit 88f9503
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/PharoLauncher-Core/PharoLauncherSettings.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ I'm used by the Pharo Launcher settings presenter.
Class {
#name : 'PharoLauncherSettings',
#superclass : 'Object',
#instVars : [
'settingNodes'
],
#category : 'PharoLauncher-Core-Settings',
#package : 'PharoLauncher-Core',
#tag : 'Settings'
}

{ #category : 'private' }
PharoLauncherSettings >> buildSettingNodes [
^ StSettingsTree new
acceptableKeywords: { #pharoLauncherSettings };
newSettingTreeBuilderNodes
]

{ #category : 'accessing' }
PharoLauncherSettings >> checkTemplateSourcesUpdate: aBoolean [

Expand Down Expand Up @@ -82,9 +92,7 @@ PharoLauncherSettings >> settingNodeNamed: aSettingIdentifier [

{ #category : 'private' }
PharoLauncherSettings >> settingNodes [
^ StSettingsTree new
acceptableKeywords: { #pharoLauncherSettings };
newSettingTreeBuilderNodes
^ settingNodes ifNil: [ settingNodes := self buildSettingNodes ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 88f9503

Please sign in to comment.