mirror of
https://github.com/voideditor/void
synced 2026-05-23 17:38:23 +00:00
amend
This commit is contained in:
parent
18656372f8
commit
6dc9988af0
1 changed files with 6 additions and 4 deletions
|
|
@ -28,17 +28,19 @@ const Sidebar = () => {
|
|||
|
||||
// if they toggled thread selector
|
||||
useOnVSCodeMessage('toggleThreadSelector', (m) => {
|
||||
if (tab === 'threadSelector')
|
||||
if (tab === 'threadSelector') {
|
||||
setTab('chat')
|
||||
else
|
||||
chatInputRef.current?.blur();
|
||||
} else
|
||||
setTab('threadSelector')
|
||||
})
|
||||
|
||||
// if they toggled settings
|
||||
useOnVSCodeMessage('toggleSettings', (m) => {
|
||||
if (tab === 'settings')
|
||||
if (tab === 'settings') {
|
||||
setTab('chat')
|
||||
else
|
||||
chatInputRef.current?.blur();
|
||||
} else
|
||||
setTab('settings')
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue