Skip to content

Commit

Permalink
Adds default view option to changeDisplay()
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeAtHPI committed Oct 13, 2023
1 parent 4a6306c commit f9dde49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/Sandblocks-Watch/SBWatchView.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ SBWatchView >> changeDisplay [
<action>

| index options |
options := Array streamContents: [:stream | self values allConversionsFor: SBInterfaces topLevel do: [:pair | stream nextPut: pair]].
options := Array streamContents: [:stream | self values allConversionsFor: SBInterfaces topLevel do: [:pair | stream nextPut: pair]].
options := options, {{'default'. self watchValuesContainer addAllMorphsBack: (watchValues collect: #asValueMorph)}}.
index := UIManager default chooseFrom: (options collect: #first).
index = 0 ifTrue: [^ self].

Expand Down

0 comments on commit f9dde49

Please sign in to comment.