Skip to content

Commit

Permalink
Merge pull request #988 from WolframResearch/bugfix/internal-error-wn…
Browse files Browse the repository at this point in the history
…a-docked-cell-in-cloud

Bugfix: Unhandled recursion causing internal error in cloud
  • Loading branch information
rhennigan authored Dec 18, 2024
2 parents 2a09469 + d42c077 commit f73f0a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Chatbook/ChatModes/UI.wl
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,14 @@ toolbarButtonLabel // endDefinition;
toolbarButtonLabel0 // beginDefinition;

toolbarButtonLabel0[ iconName_String, labelName_String, {styleOpts___}, {gridOpts___}] :=
toolbarButtonLabel0[ iconName, tr[ "WorkspaceToolbarButtonLabel"<>labelName ], {styleOpts}, {gridOpts} ];
With[ { label = tr[ "WorkspaceToolbarButtonLabel"<>labelName ] },
toolbarButtonLabel0[
iconName,
If[ StringQ @ label, Style @ label, label ],
{styleOpts},
{gridOpts}
]
];

toolbarButtonLabel0[ iconName_String, None, {styleOpts___}, {gridOpts___}] :=
Grid[
Expand Down

0 comments on commit f73f0a4

Please sign in to comment.