Skip to content

Commit e990bbe

Browse files
committed
makeSidebarChatDockedCell: remove Dynamic from call signatures
1 parent d49dc33 commit e990bbe

File tree

1 file changed

+11
-11
lines changed
  • Source/Chatbook/ChatModes

1 file changed

+11
-11
lines changed

Source/Chatbook/ChatModes/UI.wl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ makeSidebarChatDockedCell[ ] := With[ { nbo = EvaluationNotebook[ ], sidebarCell
6969
BoxData @ ToBoxes @ workspaceChatInitializer @ Framed[
7070
Grid[
7171
{ {
72-
LogChatTiming @ sidebarNewChatButton[ Dynamic @ nbo, Dynamic @ sidebarCell ], (* FIXME: these calling signatures no longer need the Dynamic heads *)
72+
LogChatTiming @ sidebarNewChatButton[ nbo, sidebarCell ],
7373
Item[ Spacer[ 0 ], ItemSize -> Fit ],
74-
LogChatTiming @ sidebarSourcesButton[ Dynamic @ nbo, Dynamic @ sidebarCell ],
75-
LogChatTiming @ sidebarHistoryButton[ Dynamic @ nbo, Dynamic @ sidebarCell ],
76-
LogChatTiming @ sidebarOpenAsAssistantWindowButton[ Dynamic @ nbo, Dynamic @ sidebarCell ],
77-
sidebarHideButton[ Dynamic @ nbo ]
74+
LogChatTiming @ sidebarSourcesButton[ nbo, sidebarCell ],
75+
LogChatTiming @ sidebarHistoryButton[ nbo, sidebarCell ],
76+
LogChatTiming @ sidebarOpenAsAssistantWindowButton[ nbo, sidebarCell ],
77+
LogChatTiming @ sidebarHideButton @ nbo
7878
} },
7979
Alignment -> { Automatic, Center },
8080
Spacings -> 0.2
@@ -272,7 +272,7 @@ removeSidebarScrollingCellContent // endDefinition;
272272
(*sidebarHistoryButton*)
273273
sidebarHistoryButton // beginDefinition;
274274

275-
sidebarHistoryButton[ Dynamic[ nbo_ ], Dynamic[ sidebarCell_ ] ] := Button[
275+
sidebarHistoryButton[ nbo_NotebookObject, sidebarCell_CellObject ] := Button[
276276
toolbarButtonLabel[ "WorkspaceToolbarIconHistory", "WorkspaceToolbarButtonLabelHistory", "WorkspaceToolbarButtonTooltipHistory", False, True ],
277277
toggleOverlayMenu[ nbo, sidebarCell, "History" ],
278278
Appearance -> "Suppressed"
@@ -285,7 +285,7 @@ sidebarHistoryButton // endDefinition;
285285
(*sidebarSourcesButton*)
286286
sidebarSourcesButton // beginDefinition;
287287

288-
sidebarSourcesButton[ Dynamic[ nbo_ ], Dynamic[ sidebarCell_ ] ] := Button[
288+
sidebarSourcesButton[ nbo_NotebookObject, sidebarCell_CellObject ] := Button[
289289
toolbarButtonLabel[ "WorkspaceToolbarIconSources", "WorkspaceToolbarButtonLabelSources", "WorkspaceToolbarButtonTooltipSources", False, True ],
290290
toggleOverlayMenu[ nbo, sidebarCell, "Sources" ],
291291
Appearance -> "Suppressed"
@@ -298,7 +298,7 @@ sidebarSourcesButton // endDefinition;
298298
(*sidebarNewChatButton*)
299299
sidebarNewChatButton // beginDefinition;
300300

301-
sidebarNewChatButton[ Dynamic[ nbo_ ], Dynamic[ sidebarCell_ ] ] :=
301+
sidebarNewChatButton[ nbo_NotebookObject, sidebarCell_CellObject ] :=
302302
Button[
303303
toolbarButtonLabel[ "WorkspaceToolbarIconNew", "WorkspaceToolbarButtonLabelNew", "WorkspaceToolbarButtonTooltipNew", False, True ]
304304
,
@@ -319,7 +319,7 @@ sidebarNewChatButton // endDefinition;
319319
(*sidebarOpenAsAssistantWindowButton*)
320320
sidebarOpenAsAssistantWindowButton // beginDefinition;
321321

322-
sidebarOpenAsAssistantWindowButton[ Dynamic[ nbo_ ], Dynamic[ sidebarCell_ ] ] := Button[
322+
sidebarOpenAsAssistantWindowButton[ nbo_NotebookObject, sidebarCell_CellObject ] := Button[
323323
toolbarButtonLabel[ "WorkspaceToolbarIconOpenAsChatbook", None, "SidebarToolbarButtonTooltipOpenAsWindowedAssistant", False, True ],
324324
With[
325325
{
@@ -359,11 +359,11 @@ sidebarOpenAsAssistantWindowButton // endDefinition;
359359

360360
(* ::**************************************************************************************************************:: *)
361361
(* ::Subsubsection::Closed:: *)
362-
(*sidebarOpenAsAssistantWindowButton*)
362+
(*sidebarHideButton*)
363363

364364
sidebarHideButton // beginDefinition;
365365

366-
sidebarHideButton[ Dynamic[ nbo_ ] ] := Button[
366+
sidebarHideButton[ nbo_NotebookObject ] := Button[
367367
Tooltip[
368368
mouseDown[
369369
Framed[

0 commit comments

Comments
 (0)