Skip to content

Commit

Permalink
do not run template sources update checker when in CLI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Aug 28, 2023
1 parent b5c6a01 commit 7bf111d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/PharoLauncher-Core/PhLTemplateSourcesUpdateChecker.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ PhLTemplateSourcesUpdateChecker class >> launcherStartUpPriority [
PhLTemplateSourcesUpdateChecker class >> run [
self shouldRun ifFalse: [ ^ self ].

"need to manage it for command-line. Not available for now"
Smalltalk isInteractive ifFalse: [ ^ self ].

self uniqueInstance run


Expand All @@ -47,12 +50,14 @@ PhLTemplateSourcesUpdateChecker class >> run [
PhLTemplateSourcesUpdateChecker class >> settingsOn: aBuilder [
<systemsettings>
<pharoLauncherSettings>
(aBuilder setting: #shouldRun)
label: 'Check for template sources update?' translated;
(aBuilder setting: #shouldCheckTemplateSourcesUpdate)
label: 'Check for template sources update?';
parent: #pharoLauncher;
target: self;
getSelector: #shouldRun;
setSelector: #shouldRun:;
order: 55;
description: 'Check if Pharo Launcher Template sources has an update available (needs internet access)' translated
description: 'Check if Pharo Launcher Template sources has an update available (needs internet access)'
]

{ #category : #settings }
Expand Down

0 comments on commit 7bf111d

Please sign in to comment.