Skip to content

Commit f8c6829

Browse files
Extracted reference to Smalltalk ui icons into #defaultIconProvider method.
1 parent 798d0ab commit f8c6829

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Commander2-UI/CmUICommand.class.st

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ CmUICommand >> beHiddenWhenCantBeRun [
4141
self displayStrategy: CmUIHideWhenCantBeRun new
4242
]
4343

44+
{ #category : #accessing }
45+
CmUICommand >> defaultIconProvider [
46+
^ Smalltalk ui icons
47+
]
48+
4449
{ #category : #accessing }
4550
CmUICommand >> displayStrategy [
4651
^ displayStrategy
@@ -93,7 +98,7 @@ CmUICommand >> iconNamed: aSymbol [
9398

9499
{ #category : #accessing }
95100
CmUICommand >> iconProvider [
96-
^ iconProvider ifNil: [ iconProvider := Smalltalk ui icons ]
101+
^ iconProvider ifNil: [ iconProvider := self defaultIconProvider ]
97102
]
98103

99104
{ #category : #accessing }

0 commit comments

Comments
 (0)