Skip to content

Commit

Permalink
use switch
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Jul 5, 2024
1 parent 9eab8ec commit e47cf72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PhLAbstractSettingsPresenter >> newCheckBoxFor: aSettingIdentifier [
| declaration |

declaration := self settings declarationNamed: aSettingIdentifier.
^ self newCheckBox
^ self newSwitch
help: declaration description;
state: (self settings valueOfDeclarationNamed: aSettingIdentifier);
whenChangedDo: [ :state | self settings setValueOfDeclarationNamed: aSettingIdentifier with: state ]
Expand Down
12 changes: 6 additions & 6 deletions src/PharoLauncher-Spec2/PhLGeneralSettingsPresenter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,27 @@ PhLGeneralSettingsPresenter >> defaultLayout [
spacing: 15;
add: (SpBoxLayout newLeftToRight
add: 'Check for template sources update?';
add: checkForTemplateSourcesUpdateSwitch;
add: checkForTemplateSourcesUpdateSwitch expand: false;
yourself) expand: false;
add: (SpBoxLayout newLeftToRight
add: 'Templates cleared at startup';
add: clearTemplatesSwitch;
add: clearTemplatesSwitch expand: false;
yourself) expand: false;
add: (SpBoxLayout newLeftToRight
add: 'Quit On Launch';
add: quitOnLaunchSwitch;
add: quitOnLaunchSwitch expand: false;
yourself) expand: false;
add: (SpBoxLayout newLeftToRight
add: 'Launch image from a login shell';
add: launchFromALoginShellSwitch;
add: launchFromALoginShellSwitch expand: false;
yourself) expand: false;
add: (SpBoxLayout newLeftToRight
add: 'Warn on image architecture mismatch?';
add: warnOnImageArchMisMatchSwitch;
add: warnOnImageArchMisMatchSwitch expand: false;
yourself) expand: false;
add: (SpBoxLayout newLeftToRight
add: 'Enable development environment';
add: enableDevEnvironmentSwitch;
add: enableDevEnvironmentSwitch expand: false;
yourself) expand: false;

add: 'Template sources Url' expand: false;
Expand Down

0 comments on commit e47cf72

Please sign in to comment.