Skip to content

Commit

Permalink
Merge pull request #503 from WolframResearch/299-assistant-output-cel…
Browse files Browse the repository at this point in the history
…ls-do-not-run-the-correct-cell-initialization-the-first-time-they-appear

Bugfix: Fix the missing disable button when auto assistance outputs are first created
  • Loading branch information
rhennigan authored Jan 2, 2024
2 parents 90fdc08 + 2d4a621 commit 175b257
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Source/Chatbook/SendChat.wl
Original file line number Diff line number Diff line change
Expand Up @@ -2297,14 +2297,7 @@ attachChatOutputMenu[ cell_CellObject ] /; $cloudNotebooks := Null;

attachChatOutputMenu[ cell_CellObject ] := (
$lastChatOutput = cell;
NotebookDelete @ Cells[ cell, AttachedCell -> True, CellStyle -> "ChatMenu" ];
AttachCell[
cell,
Cell[ BoxData @ TemplateBox[ { "ChatOutput", RGBColor[ "#ecf0f5" ] }, "ChatMenuButton" ], "ChatMenu" ],
{ Right, Top },
Offset[ { -7, -7 }, { Right, Top } ],
{ Right, Top }
]
Block[ { EvaluationCell = cell & }, CurrentValue[ cell, Initialization ] ]
);

attachChatOutputMenu // endDefinition;
Expand Down

0 comments on commit 175b257

Please sign in to comment.