Skip to content

Commit

Permalink
tiny change to use most recent in stack (#501)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneale authored Dec 19, 2024
1 parent 84fd9ce commit e813c8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ app.whenReady().then(async () => {
const { dirPath } = parseArgs();

createTray();
createChat(app, undefined, dirPath);
const recentDirs = loadRecentDirs();
let openDir = dirPath || (recentDirs.length > 0 ? recentDirs[0] : null);
createChat(app, undefined, openDir);

// Show launcher input on key combo
globalShortcut.register('Control+Alt+Command+G', createLauncher);
Expand Down

0 comments on commit e813c8d

Please sign in to comment.