Skip to content

Commit

Permalink
fix: Broken open directory and new session buttons in more menu (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgirlbytes authored Dec 23, 2024
1 parent 1b0b70c commit f632e61
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/desktop/src/components/MoreMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,19 @@ export default function MoreMenu() {
</button>
</div>)}
<button
onClick={() => handleAction(window.electron.directoryChooser)}
onClick={() => {
setOpen(false);
window.electron.directoryChooser();
}}
className="w-full text-left px-2 py-1.5 text-sm"
>
Open Directory (cmd+O)
</button>
<button
onClick={() => handleAction(window.electron.createChatWindow)}
onClick={() => {
setOpen(false);
window.electron.createChatWindow();
}}
className="w-full text-left px-2 py-1.5 text-sm"
>
New Session (cmd+N)
Expand Down

0 comments on commit f632e61

Please sign in to comment.