Skip to content

Commit

Permalink
[Enh]: Home Card Helper - Accept Nil Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
seandenigris committed Nov 21, 2024
1 parent 2a6d2f4 commit f2ebd5c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Dynabook-GToolkit/GtHomeMultiCardSection.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ GtHomeMultiCardSection >> buttonPriority: aNumber titled: aString icon: iconable

stencil := GtToolButtonStencil new
title: aString;
icon: icon;
iconSize: 50@50;
action: aValuable;
description: tipString.

icon ifNotNil: [
stencil
icon: icon;
iconSize: 50@50 ].

^ GtHomeCard explicit
priority: aNumber;
stencil: [ stencil ];
Expand Down

0 comments on commit f2ebd5c

Please sign in to comment.