Skip to content

Commit 47f1cfe

Browse files
committed
Use f#illWith: instead of #asMenuPresenter and #asMenuBarPresenter
1 parent d2da06e commit 47f1cfe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/CodeOfSpec20Book/MailClientPresenterWithCommands.class.st

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ MailClientPresenterWithCommands class >> buildViewMenuWith: presenter [
8989
{ #category : 'private' }
9090
MailClientPresenterWithCommands >> accountMenu [
9191

92-
^ (self rootCommandsGroup / 'AccountMenu') asMenuPresenter
92+
^ self newMenu
93+
fillWith: (self rootCommandsGroup / 'AccountMenu');
94+
yourself
9395
]
9496

9597
{ #category : 'testing' }
@@ -101,7 +103,8 @@ MailClientPresenterWithCommands >> hasSelectedEmail [
101103
{ #category : 'nil' }
102104
MailClientPresenterWithCommands >> initializeMenuBar [
103105

104-
menuBar := (self rootCommandsGroup / 'MenuBar') asMenuBarPresenter
106+
menuBar := self newMenuBar.
107+
menuBar fillWith: self rootCommandsGroup / 'MenuBar'
105108
]
106109

107110
{ #category : 'initialization' }

0 commit comments

Comments
 (0)