Skip to content

Commit 7f43e88

Browse files
authored
Merge pull request #1376 from WolframResearch/bugfix/Sidebar12
Prevent sidebar assistant in dialogs, palettes, and messages window
2 parents 5e06cf9 + df691d0 commit 7f43e88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Source/Chatbook/ChatModes/ShowNotebookAssistance.wl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ showNotebookAssistanceSidebar // beginDefinition;
530530

531531
showNotebookAssistanceSidebar[ nbo_NotebookObject, input_, evaluate_, settings0_Association ] := Enclose[
532532
Module[ { sidebarCell },
533+
If[ TrueQ @ AbsoluteCurrentValue[ nbo, Deployed ], Return @ Null ]; (* prevent sidebar from opening in dialogs and palettes *)
534+
If[ nbo === MessagesNotebook[ ], Return @ Null ]; (* prevent sidebar from opening in messages window *)
533535

534536
sidebarCell = sidebarCellObject @ nbo; (* if the side bar has been opened once before IN ITS CONTAINING NOTEBOOK than this is a CellObject, else $Failed *)
535537

0 commit comments

Comments
 (0)